@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 54% 34% at 12% 2%, rgba(201, 178, 152, 0.055), transparent 72%),
    radial-gradient(ellipse 42% 28% at 92% 14%, rgba(141, 117, 86, 0.045), transparent 74%),
    var(--lp-color-canvas);
  color: var(--lp-color-text);
  font-family: var(--lp-font-ui);
  font-size: var(--lp-font-body);
  font-weight: var(--lp-weight-regular);
  letter-spacing: var(--lp-tracking-body);
  line-height: var(--lp-leading-body);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(201, 178, 152, 0.1) 1px, transparent 0);
  background-size: 32px 32px;
  content: "";
  mask-image: radial-gradient(ellipse 72% 46% at 50% 0, #000, transparent 80%);
  opacity: 0.18;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lp-color-gold); outline-offset: 3px; }
::selection { background: rgba(201, 178, 152, 0.3); color: var(--lp-color-text); }

.lp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lp-icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.lp-data {
  color: var(--lp-color-text-muted);
  font-family: var(--lp-font-data);
  font-size: var(--lp-font-meta);
  font-weight: 500;
  letter-spacing: var(--lp-tracking-data);
  line-height: 1.45;
  text-transform: uppercase;
}
.lp-display, .lp-title, .lp-card-title { text-wrap: balance; }
.lp-display {
  margin: 0;
  font-size: var(--lp-font-display);
  font-weight: 500;
  letter-spacing: var(--lp-tracking-tight);
  line-height: var(--lp-leading-display);
}
.lp-display em, .lp-title em {
  color: var(--lp-color-gold-bright);
  font-family: var(--lp-font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.lp-title { margin: 0; font-size: var(--lp-font-title); font-weight: 600; line-height: var(--lp-leading-tight); }
.lp-copy { max-width: 68ch; margin: 0; color: var(--lp-color-text-body); }
.lp-muted { color: var(--lp-color-text-muted); }

/* Chrome */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--lp-color-border);
  background: rgba(7, 7, 9, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px) saturate(1.4);
}
.lp-topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--lp-space-2-5);
  width: min(100% - 48px, var(--lp-layout-max));
  height: 66px;
  margin-inline: auto;
}
.lp-wordmark { flex: none; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.lp-wordmark em { color: var(--lp-color-gold); font-style: normal; }
.lp-module-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-card); background: var(--lp-color-surface); }
.lp-module-switch a { display: flex; align-items: center; gap: 8px; min-height: var(--lp-touch-target); padding-inline: 18px; border-radius: var(--lp-radius-control); color: var(--lp-color-text-muted); font-weight: 600; }
.lp-module-switch a:hover { color: var(--lp-color-text); background: var(--lp-color-surface-raised); }
.lp-module-switch a[aria-current="page"] { color: var(--lp-color-gold-bright); background: rgba(201, 178, 152, 0.14); box-shadow: inset 0 0 0 1px rgba(201, 178, 152, 0.2); }
.lp-topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lp-search-trigger { display: flex; align-items: center; gap: 10px; min-width: 190px; height: 44px; padding-inline: 14px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-control); background: var(--lp-color-surface); color: var(--lp-color-text-muted); }
.lp-search-trigger:hover { border-color: var(--lp-color-gold-strong); color: var(--lp-color-text); }
.lp-kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--lp-color-border); border-radius: 4px; font-family: var(--lp-font-data); font-size: 10px; }
.lp-icon-button, .lp-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid transparent; background: transparent; }
.lp-icon-button { border-radius: var(--lp-radius-control); color: var(--lp-color-text-muted); }
.lp-icon-button:hover { background: var(--lp-color-gold-wash); color: var(--lp-color-text); }
.lp-avatar { border-color: var(--lp-color-border); border-radius: var(--lp-radius-full); background: var(--lp-color-surface-raised); color: var(--lp-color-gold-bright); font-size: var(--lp-font-small); font-weight: 700; }
.lp-layout { display: grid; grid-template-columns: var(--lp-layout-rail) minmax(0, 1fr); gap: var(--lp-layout-gap); width: min(100% - 48px, var(--lp-layout-max)); margin-inline: auto; padding-block: var(--lp-space-5) var(--lp-space-12); }
.lp-rail { min-width: 0; }
.lp-rail-inner { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; padding-right: var(--lp-space-2); }
.lp-rail-heading { display: flex; align-items: center; gap: 12px; min-height: 50px; margin-bottom: 8px; padding: 0 8px 16px; border-bottom: 1px solid var(--lp-color-border); }
.lp-rail-heading strong { display: block; font-size: 16px; line-height: 1.2; }
.lp-rail-nav { display: flex; flex-direction: column; gap: 4px; }
.lp-rail-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding-inline: 10px; border-radius: var(--lp-radius-control); color: var(--lp-color-text-muted); font-weight: 600; transition: color var(--lp-duration-normal) var(--lp-ease-product), background var(--lp-duration-normal) var(--lp-ease-product); }
.lp-rail-nav a:hover { color: var(--lp-color-text); background: var(--lp-color-surface-raised); }
.lp-rail-nav a[aria-current="location"] { color: var(--lp-color-gold-bright); background: linear-gradient(90deg, rgba(201, 178, 152, 0.12), rgba(201, 178, 152, 0.035)); box-shadow: inset 0 0 0 1px rgba(201, 178, 152, 0.11); }
.lp-rail-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: auto; padding-inline: 6px; border-radius: var(--lp-radius-full); background: rgba(201, 178, 152, 0.13); color: var(--lp-color-gold-bright); font: 500 9px/1 var(--lp-font-data); }
.lp-main { min-width: 0; max-width: 100%; }
.lp-section { padding-block: 18px 44px; border-bottom: 1px solid var(--lp-color-border); scroll-margin-top: 78px; }
.lp-section:last-child { border-bottom: 0; }
.lp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lp-section-head > div { display: grid; gap: 4px; }

/* Actions and forms */
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--lp-radius-control); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background var(--lp-duration-normal) var(--lp-ease-product), border-color var(--lp-duration-normal) var(--lp-ease-product), color var(--lp-duration-normal) var(--lp-ease-product); }
.lp-button--primary { background: var(--lp-color-gold); color: var(--lp-color-on-gold); box-shadow: 0 10px 36px rgba(201, 178, 152, 0.16); }
.lp-button--primary:hover { background: var(--lp-color-gold-bright); }
.lp-button--outline { border-color: rgba(201, 178, 152, 0.34); background: rgba(201, 178, 152, 0.025); color: var(--lp-color-gold-bright); }
.lp-button--outline:hover { border-color: rgba(201, 178, 152, 0.52); background: rgba(201, 178, 152, 0.09); }
.lp-button--ghost { border-color: var(--lp-color-border); background: transparent; color: var(--lp-color-text-muted); }
.lp-button--ghost:hover { border-color: var(--lp-color-border-strong); background: var(--lp-color-surface-raised); color: var(--lp-color-text); }
.lp-button--danger { border-color: rgba(255, 69, 58, 0.5); background: transparent; color: var(--lp-color-danger); }
.lp-button--danger:hover { background: rgba(255, 69, 58, 0.1); }
.lp-button:disabled, .lp-button[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; pointer-events: none; }
.lp-button--loading { position: relative; color: transparent; pointer-events: none; }
.lp-button--loading::after { position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: var(--lp-color-on-gold); content: ""; animation: lp-spin 0.8s linear infinite; }

.lp-theme-toggle { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-control); background: var(--lp-color-surface); }
.lp-theme-toggle button { min-height: 36px; padding-inline: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--lp-color-text-muted); font-size: 11px; font-weight: 600; }
.lp-theme-toggle button[aria-pressed="true"] { background: var(--lp-color-surface-strong); color: var(--lp-color-text); }
.lp-field { display: grid; gap: 7px; }
.lp-label { color: var(--lp-color-text-body); font-size: var(--lp-font-small); font-weight: 600; }
.lp-input, .lp-textarea, .lp-select { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-control); background: var(--lp-color-surface-raised); color: var(--lp-color-text); }
.lp-textarea { min-height: 96px; padding-block: 11px; resize: vertical; }
.lp-input::placeholder, .lp-textarea::placeholder { color: var(--lp-color-text-muted); }
.lp-input:hover, .lp-textarea:hover, .lp-select:hover { border-color: rgba(201, 178, 152, 0.28); }
.lp-input:focus, .lp-textarea:focus, .lp-select:focus { border-color: var(--lp-color-gold-strong); box-shadow: 0 0 0 3px rgba(201, 178, 152, 0.08); }
.lp-input[aria-invalid="true"], .lp-textarea[aria-invalid="true"], .lp-select[aria-invalid="true"] { border-color: rgba(255, 69, 58, 0.7); }
.lp-field-note { margin: 0; color: var(--lp-color-text-muted); font-size: var(--lp-font-caption); }
.lp-field-note--error { color: var(--lp-color-danger); }
.lp-input:disabled, .lp-textarea:disabled, .lp-select:disabled { color: var(--lp-color-text-disabled); cursor: not-allowed; opacity: 0.7; }
.lp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-check-control { display: inline-flex; align-items: center; gap: 10px; min-height: var(--lp-touch-target); color: var(--lp-color-text-body); cursor: pointer; }
.lp-checkbox { width: 18px; height: 18px; margin: 0; accent-color: var(--lp-color-gold); }
.lp-check-control:has(input:disabled) { color: var(--lp-color-text-disabled); cursor: not-allowed; }
.lp-switch { position: relative; width: 38px; height: 22px; margin: 0; appearance: none; border: 1px solid var(--lp-color-border-strong); border-radius: var(--lp-radius-full); background: var(--lp-color-surface-raised); transition: background var(--lp-duration-fast) var(--lp-ease-product), border-color var(--lp-duration-fast) var(--lp-ease-product); }
.lp-switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--lp-radius-full); background: var(--lp-color-text-muted); content: ""; transition: transform var(--lp-duration-fast) var(--lp-ease-product), background var(--lp-duration-fast) var(--lp-ease-product); }
.lp-switch:checked { border-color: var(--lp-color-gold); background: var(--lp-color-gold-wash); }
.lp-switch:checked::after { background: var(--lp-color-gold); transform: translateX(16px); }

/* Tags, status and progress */
.lp-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip, .lp-tag { display: inline-flex; align-items: center; gap: 7px; padding-inline: 12px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-full); background: var(--lp-color-surface); color: var(--lp-color-text-muted); font-size: var(--lp-font-small); font-weight: 600; }
.lp-chip { min-height: var(--lp-touch-target); }
button.lp-chip:hover { border-color: var(--lp-color-gold-strong); color: var(--lp-color-text); }
.lp-chip[aria-pressed="true"] { border-color: var(--lp-color-gold-strong); background: var(--lp-color-gold-wash); color: var(--lp-color-gold-bright); }
.lp-tag { min-height: 26px; font-family: var(--lp-font-data); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-tag--success { border-color: rgba(35, 225, 105, 0.32); color: var(--lp-color-success); }
.lp-tag--warning { border-color: rgba(255, 159, 10, 0.34); color: var(--lp-color-warning); }
.lp-tag--danger { border-color: rgba(255, 69, 58, 0.34); color: var(--lp-color-danger); }
.lp-tag-dot { width: 7px; height: 7px; border-radius: var(--lp-radius-full); background: currentColor; }
.lp-progress { display: grid; gap: 8px; }
.lp-progress-head { display: flex; justify-content: space-between; gap: 16px; }
.lp-progress-track { height: 3px; overflow: hidden; border-radius: var(--lp-radius-full); background: rgba(201, 178, 152, 0.16); }
.lp-progress-value { display: block; height: 100%; border-radius: inherit; background: var(--lp-color-gold); }

/* Surfaces and product cards */
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-surface, .lp-course-card, .lp-post-card, .lp-space-card, .lp-message-panel, .lp-state {
  border: 1px solid var(--lp-color-border);
  border-radius: var(--lp-radius-card);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: var(--lp-shadow-surface);
}
.lp-surface { padding: 20px; }
.lp-course-card, .lp-post-card, .lp-space-card { overflow: hidden; transition: border-color var(--lp-duration-normal) var(--lp-ease-product), background var(--lp-duration-normal) var(--lp-ease-product), box-shadow var(--lp-duration-normal) var(--lp-ease-product); }
.lp-course-card:hover, .lp-post-card:hover, .lp-space-card:hover { border-color: rgba(201, 178, 152, 0.3); background: linear-gradient(145deg, rgba(255, 255, 255, 0.047), rgba(201, 178, 152, 0.022)); box-shadow: var(--lp-shadow-hover); }
.lp-card-media { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 8.7; border-bottom: 1px solid var(--lp-color-border); background: radial-gradient(circle at 72% 18%, rgba(201, 178, 152, 0.16), transparent 32%), linear-gradient(135deg, #17171c, #0b0b0e); }
.lp-card-media::after { position: absolute; inset: 16% 12%; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-control); content: ""; transform: rotate(-4deg); }
.lp-card-media .lp-icon { width: 34px; height: 34px; color: var(--lp-color-gold); }
.lp-card-body { display: grid; gap: 10px; padding: 20px; }
.lp-card-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; line-height: var(--lp-leading-tight); }
.lp-card-copy { margin: 0; color: var(--lp-color-text-body); }
.lp-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--lp-color-border); }
.lp-post-head { display: flex; align-items: center; gap: 11px; }
.lp-post-byline { display: grid; flex: 1; line-height: 1.25; }
.lp-post-actions { display: flex; gap: 4px; padding-top: 6px; border-top: 1px solid var(--lp-color-border); }
.lp-post-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 12px; border: 0; border-radius: var(--lp-radius-control); background: transparent; color: var(--lp-color-text-muted); }
.lp-post-actions button:hover { color: var(--lp-color-text); background: var(--lp-color-gold-wash); }
.lp-book-card { display: grid; gap: 12px; }
.lp-book-cover { position: relative; display: flex; align-items: end; overflow: hidden; aspect-ratio: 2 / 3; padding: 16px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-card); background: radial-gradient(circle at 78% 18%, rgba(201, 178, 152, 0.18), transparent 26%), linear-gradient(160deg, #27252b, #08080a 72%); box-shadow: var(--lp-shadow-surface); transition: transform var(--lp-duration-normal) var(--lp-ease-product), border-color var(--lp-duration-normal) var(--lp-ease-product); }
.lp-book-cover::before { position: absolute; inset: 0; border-left: 10px solid rgba(0, 0, 0, 0.2); content: ""; }
.lp-book-card:hover .lp-book-cover { border-color: var(--lp-color-gold-strong); transform: translateY(-4px); }
.lp-book-cover strong { position: relative; z-index: 1; max-width: 12ch; font-family: var(--lp-font-accent); font-size: 24px; font-weight: 400; line-height: 1.05; }

/* Feedback, messages and tables */
.lp-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-card); background: rgba(201, 178, 152, 0.05); }
.lp-alert--info { border-color: rgba(10, 132, 255, 0.34); background: rgba(10, 132, 255, 0.07); }
.lp-alert--success { border-color: rgba(35, 225, 105, 0.3); background: rgba(35, 225, 105, 0.05); }
.lp-alert--warning { border-color: rgba(255, 159, 10, 0.3); background: rgba(255, 159, 10, 0.05); }
.lp-alert--danger { border-color: rgba(255, 69, 58, 0.3); background: rgba(255, 69, 58, 0.05); }
.lp-message-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 390px; overflow: hidden; }
.lp-message-panel { border-radius: var(--lp-radius-panel); }
.lp-conversations { border-right: 1px solid var(--lp-color-border); }
.lp-conversation { display: flex; gap: 10px; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--lp-color-border); background: transparent; text-align: left; }
.lp-conversation[aria-current="true"] { background: var(--lp-color-gold-wash); }
.lp-thread { display: flex; flex-direction: column; min-width: 0; }
.lp-thread-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--lp-color-border); }
.lp-thread-back { display: none; }
.lp-thread-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 18px; }
.lp-bubble { align-self: flex-start; max-width: 76%; padding: 10px 14px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-panel); background: var(--lp-color-surface-raised); }
.lp-bubble--self { align-self: flex-end; border-color: rgba(201, 178, 152, 0.25); background: rgba(201, 178, 152, 0.14); }
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-card); }
.lp-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.lp-table th, .lp-table td { padding: 12px 14px; border-bottom: 1px solid var(--lp-color-border); text-align: left; }
.lp-table th { color: var(--lp-color-text-muted); font: 500 var(--lp-font-meta)/1.4 var(--lp-font-data); letter-spacing: var(--lp-tracking-data); text-transform: uppercase; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table tbody tr:hover { background: rgba(201, 178, 152, 0.04); }
.lp-table .lp-row-active { background: rgba(201, 178, 152, 0.07); }
.lp-milestone { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.lp-milestone + .lp-milestone { margin-top: 14px; }
.lp-milestone-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-control); color: var(--lp-color-gold); }
.lp-milestone p { margin: 2px 0 0; color: var(--lp-color-text-muted); font-size: var(--lp-font-small); }

/* System states */
.lp-state { display: grid; place-items: center; min-height: 190px; padding: 28px; text-align: center; }
.lp-state-inner { display: grid; justify-items: center; gap: 10px; max-width: 36ch; }
.lp-state-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-control); color: var(--lp-color-gold); }
.lp-skeleton { position: relative; overflow: hidden; border: 1px solid var(--lp-color-border); border-radius: 4px; background: var(--lp-color-surface-raised); }
.lp-skeleton--title { width: min(80%, 260px); height: 18px; }
.lp-skeleton--line { width: min(100%, 360px); height: 10px; }
.lp-disabled-demo { opacity: 0.58; filter: saturate(0.4); }
.lp-disclosure { border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-card); background: var(--lp-color-surface); }
.lp-disclosure summary { display: flex; align-items: center; min-height: var(--lp-touch-target); padding-inline: 14px; color: var(--lp-color-text-body); cursor: pointer; font-weight: 600; }
.lp-disclosure-body { padding: 0 14px 14px; color: var(--lp-color-text-muted); }
.lp-bottom-nav { display: none; }

/* Documentation helpers */
.lp-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-swatch { overflow: hidden; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-card); background: var(--lp-color-surface); }
.lp-swatch-color { height: 76px; border-bottom: 1px solid var(--lp-color-border); }
.lp-swatch-label { display: grid; gap: 2px; padding: 10px 12px; }
.lp-scale { display: flex; align-items: end; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.lp-space-sample { display: grid; place-items: end center; min-width: 48px; color: var(--lp-color-text-muted); font-family: var(--lp-font-data); font-size: 9px; }
.lp-space-sample::before { width: var(--sample-size); height: var(--sample-size); max-width: 40px; max-height: 40px; margin-bottom: 6px; background: var(--lp-color-gold); content: ""; }
.lp-radius-samples { display: flex; flex-wrap: wrap; gap: 16px; }
.lp-radius-sample { display: grid; place-items: center; width: 120px; height: 88px; border: 1px solid var(--lp-color-gold-hairline); background: var(--lp-color-surface-raised); }
.lp-elevation-sample { min-height: 100px; padding: 20px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-card); background: var(--lp-color-surface); box-shadow: var(--lp-shadow-surface); }
.lp-motion-demo { width: 44px; height: 44px; border-radius: var(--lp-radius-control); background: var(--lp-color-gold); transition: transform var(--lp-duration-slow) var(--lp-ease-product); }

@media (hover: hover) {
  .lp-button:hover, .lp-icon-button:hover, .lp-search-trigger:hover, .lp-chip:hover, .lp-course-card:hover, .lp-post-card:hover, .lp-space-card:hover { transform: none; }
  .lp-book-card:hover .lp-book-cover { transform: translateY(-4px); }
}

:root[data-color-scheme="light"] body { background-image: radial-gradient(circle at 84% -10%, rgba(141, 117, 86, 0.12), transparent 32%); }
:root[data-color-scheme="light"] .lp-topbar,
:root[data-color-scheme="light"] .lp-bottom-nav { background: rgba(245, 242, 236, 0.94); }
:root[data-color-scheme="light"] .lp-card-media { background: radial-gradient(circle at 72% 18%, rgba(141, 117, 86, 0.16), transparent 32%), linear-gradient(135deg, #eee7dc, #dcd3c6); }
:root[data-color-scheme="light"] .lp-course-card:hover,
:root[data-color-scheme="light"] .lp-post-card:hover,
:root[data-color-scheme="light"] .lp-space-card:hover { background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(141,117,86,.05)); }
.lp-motion-demo:hover { transform: translateX(48px); }

@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .lp-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 24px; }
  .lp-rail-inner { position: static; max-height: none; padding: 0; }
  .lp-rail-heading { margin: 0; padding: 0 2px 10px; }
  .lp-rail-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .lp-rail-nav a { flex: none; min-height: var(--lp-touch-target); padding-inline: 13px; border: 1px solid var(--lp-color-border); border-radius: var(--lp-radius-full); white-space: nowrap; }
}
@media (max-width: 760px) {
  body::before { opacity: 0.1; }
  .lp-topbar-inner { width: calc(100% - 28px); height: 60px; gap: 8px; }
  .lp-module-switch { display: none; }
  .lp-search-trigger { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  .lp-search-trigger span, .lp-kbd { display: none; }
  .lp-layout { width: calc(100% - 28px); gap: 18px; padding-top: 18px; }
  .lp-rail-heading { display: none; }
  .lp-rail-nav a { min-height: var(--lp-touch-target); padding-inline: 12px; font-size: 12.5px; }
  .lp-section { padding-block: 14px 36px; }
  .lp-section-head { align-items: flex-start; flex-direction: column; }
  .lp-grid, .lp-grid--four, .lp-form-grid, .lp-swatches { grid-template-columns: 1fr; }
  .lp-message-panel { grid-template-columns: 1fr; }
  .lp-conversations { display: none; }
  .lp-thread-back { display: inline-grid; }
  .lp-bubble { max-width: 88%; }
  .lp-button { flex-grow: 1; }
  .lp-display { font-size: 2rem; }
  .lp-bottom-nav { position: fixed; right: 12px; bottom: 10px; left: 12px; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; border: 1px solid var(--lp-color-gold-hairline); border-radius: var(--lp-radius-panel); background: rgba(12, 12, 15, 0.94); box-shadow: var(--lp-shadow-overlay); backdrop-filter: blur(20px); }
  .lp-bottom-nav a { display: grid; place-items: center; gap: 2px; min-height: 48px; border-radius: var(--lp-radius-control); color: var(--lp-color-text-muted); font-size: 11px; font-weight: 600; }
  .lp-bottom-nav a[aria-current="page"] { background: var(--lp-color-gold-wash); color: var(--lp-color-gold-bright); }
  body { padding-bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .lp-book-card:hover .lp-book-cover, .lp-motion-demo:hover { transform: none; }
}
