.lp-page { --ls-accent: #426f76; }
.lp-shell { padding-bottom: 64px; }
.lp-heading { max-width: 840px; padding: 12px 0 32px; }
.lp-heading h1 { font-size: clamp(30px, 3.6vw, 46px); overflow-wrap: anywhere; margin-bottom: 16px; }
.lp-heading > p { font-size: 20px; margin-bottom: 0; }
.lp-person { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lp-person img { width: 56px; height: 56px; border-radius: 50%; }
.lp-person .ls-eyebrow { margin: 0; }
.lp-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 260px); gap: 40px; align-items: start; }
.lp-chat { min-width: 0; background: white; border: 1px solid #dce5e3; border-radius: 16px; overflow: hidden; }
.lp-chat-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-bottom: 1px solid #e3ebe8; padding: 18px 24px; font-size: 15px; }
.lp-chat-toolbar select { font: inherit; background: white; color: #315c61; border: 1px solid #abc4bd; border-radius: 6px; padding: 8px; }
.lp-chat-toolbar a { color: #315c61; text-decoration: underline; }
.lp-chat-log { padding: 24px 28px; }
.lp-message { margin-bottom: 22px; max-width: 92%; overflow-wrap: anywhere; }
.lp-message--user { margin-left: auto; }
.lp-message-role { display: block; color: #70857e; font-size: 13px; margin-bottom: 6px; }
.lp-message--user .lp-message-role { text-align: right; }
.lp-message-body { border-radius: 10px; background: #f3f7f5; padding: 16px 18px; line-height: 1.65; }
.lp-message--user .lp-message-body { background: #e4f0ec; }
.lp-message-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.lp-message-actions button, .lp-text-button { border: 0; background: transparent; padding: 6px 0; font: inherit; font-size: 15px; color: #315c61; text-decoration: underline; text-underline-offset: 4px; }
.lp-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 24px; }
.lp-prompts button { border: 1px solid #bed2cc; background: white; color: #315c61; font-size: 14px; border-radius: var(--fd-control-radius); padding: 8px 12px; }
.lp-composer { border-top: 1px solid #e3ebe8; padding: 20px 28px; }
.lp-composer label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.lp-composer form > div { display: flex; align-items: stretch; gap: 12px; }
.lp-composer input { min-width: 0; flex: 1; border: 1px solid #9cbcb2; border-radius: 7px; padding: 12px; }
.lp-composer #falina-status { margin: 0; font-size: 15px; color: #526d65; }
.lp-composer #falina-status:not(:empty) { margin-bottom: 12px; }
.lp-composer #falina-retry { margin-bottom: 16px; }
.lp-composer #feedbackbtn { margin-top: 12px; }
.lp-aside { border-top: 2px solid #d4e2dc; padding-top: 22px; }
.lp-aside h2 { font-size: 20px; }
.lp-aside a { display: block; font-size: 16px; padding: 12px 0; color: #426e61; border-bottom: 1px solid #dce5e3; }
.lp-aside p { font-size: 14px; margin-top: 24px; }
.lp-aside p a { border: 0; padding: 0; font-size: inherit; }
.lp-aside-group { margin-top: 28px; }
.lp-aside-group h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #315c61; }
.lp-aside-group > a:last-of-type { border-bottom: 0; }
.lp-aside-group p { margin: 16px 0 0; }
.lp-generator { max-width: 960px; margin-bottom: 28px; padding: 28px 32px; background: white; border: 1px solid #dce5e3; border-radius: 14px; }
.lp-generator label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.lp-generator textarea { width: 100%; min-height: 100px; resize: vertical; font: inherit; padding: 12px; border: 1px solid #a4bdb4; border-radius: 7px; }
.lp-generator-options { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.lp-generator-options select { font: inherit; padding: 10px; background: white; border: 1px solid #a4bdb4; border-radius: 7px; }
.lp-generator #generateStatus { margin: 18px 0 0; font-size: 16px; }
.lp-generator .is-error { color: #a3333d; }
.lp-generated-title { font-size: 24px !important; margin: 28px 0 18px !important; }
.lp-generator-result { max-width: 960px; }
.lp-leisure-opening { max-width: 800px; padding: 16px 0 36px; }
.lp-leisure-opening p { font-size: 20px; }
.lp-card-link { display: block; color: #8d4e43 !important; margin-top: auto; font-weight: 600; }
.lp-prose-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(0, 260px); gap: 36px; align-items: start; }
.lp-prose { background: white; border: 1px solid #dce5e3; border-radius: 14px; padding: 36px; min-width: 0; }
.lp-reading-prose .row { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-reading-prose .col-md-6 { flex: 1; min-width: 180px; }
.lp-prose [id] { scroll-margin-top: 110px; }
.lp-prose h1 { font-size: clamp(30px, 3.4vw, 44px); }
.lp-prose iframe { width: 100%; max-width: 100%; border: 0; }
.lp-inline-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.lp-reading-prose img[src*="app_italiaans"] { max-height: 420px; object-fit: contain; }
.lp-puzzle { max-width: 680px; background: white; border: 1px solid #dce5e3; border-radius: 14px; padding: 32px; }
.lp-puzzle-grid { max-width: 320px; display: grid; gap: 7px; margin: 0 auto 24px; }
.lp-puzzle-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.lp-puzzle-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid #bacdc5; font-family: Montserrat,sans-serif; font-size: 24px; text-transform: uppercase; border-radius: 5px; }
.lp-puzzle-tile.correct { background: #376d51; color: white; }
.lp-puzzle-tile.present { background: #8a6d20; color: white; }
.lp-puzzle-tile.absent { background: #687570; color: white; }
.lp-puzzle label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.lp-puzzle form > div { display: flex; gap: 12px; }
.lp-puzzle input { min-width: 0; flex: 1; width: 100%; padding: 12px; border: 1px solid #9cbcb2; border-radius: 7px; }
.lp-puzzle #message { margin-top: 20px; font-size: 16px; }
.lp-puzzle-key { font-size: 14px; margin: 0 0 24px; }
.lp-puzzle-column { max-width: 560px; margin: 12px auto 0; }
.lp-puzzle-column .lp-heading { text-align: center; padding-top: 0; }
.lp-puzzle-column .lp-heading p { text-align: center; }
.lp-puzzle-column .lp-puzzle { width: 100%; }
.lp-puzzle-column .lp-puzzle form, .lp-puzzle-column .lp-puzzle-key, .lp-puzzle-column #message { max-width: 320px; margin-left: auto; margin-right: auto; }
.lp-puzzle-column .lp-puzzle form > div { flex-wrap: wrap; }
.lp-puzzle-column .lp-puzzle form input { flex-basis: 100%; }
.lp-puzzle-column .lp-puzzle form button { width: 100%; }
.lp-puzzle-column #puzzle-retry { display: block; margin: 0 auto; }
@media(max-width:1023px) { .lp-layout, .lp-prose-layout { grid-template-columns: minmax(0,1fr); gap: 32px; } }
@media(max-width:767px) {
  .lp-heading > p, .lp-leisure-opening p { font-size: 18px; }
  .lp-person { gap: 12px; }.lp-person img { width: 44px; height: 44px; }
  .lp-chat-log { padding: 20px; }.lp-message { max-width: 100%; }
  .lp-composer { padding: 18px 20px; }.lp-composer form > div { flex-wrap: wrap; }
  .lp-composer input { flex-basis: 100%; }.lp-prompts { padding: 0 20px 20px; }
  .lp-chat-toolbar { padding: 16px 20px; }
  .lp-generator, .lp-prose, .lp-puzzle { padding: 22px; }
  .lp-generator-options > div { flex: 1 1 180px; min-width: 0; }.lp-generator-options select { max-width: 100%; width: 100%; }
  .lp-generator-options > button { flex-basis: 100%; }
  .lp-puzzle form > div { flex-wrap: wrap; }.lp-puzzle input { flex-basis: 100%; }
}
