/* Shared RUUD.ai interface: real streaming, native dialog and readable conversation. */
html.rw-chat-open { overflow: hidden; }
.studio #ruud-chat { position: fixed; right: 24px; bottom: 22px; z-index: 190; }
.studio .rw-launcher { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 11px 18px 11px 12px; border: 1px solid #d6ad514d; border-radius: 18px; background: #171719; color: #f8efdb; font: 500 17px/1.3 'Segoe UI', Arial, sans-serif; box-shadow: 0 8px 35px #0006, inset 0 1px 0 #ffffff08; cursor: pointer; transition: border-color .2s, background .2s; }
.studio .rw-launcher:hover { border-color: #ebc568; background: #22201b; }
.rw-launcher img { display: block; border-radius: 8px; }
.rw-launcher-arrow { color: var(--studio-gold); font-size: 24px; margin-left: 9px; }
.studio .rw-chat-dialog { padding: 0; margin: 0; inset: auto 24px max(18px, var(--chat-bottom, 0px)) auto; width: min(480px, calc(100vw - 32px)); max-width: none; max-height: none; border: 1px solid #d7b46655; border-radius: 26px; background: #101114; color: #f7f5f0; box-shadow: 0 28px 120px #0009; overflow: hidden; }
.rw-chat-dialog::backdrop { background: #05060980; backdrop-filter: blur(3px); }
.studio .rw-chat, .studio #ai-chatbox.rw-chat { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; height: min(730px, calc(var(--chat-viewport, 100dvh) - 36px)); border: 0; border-radius: 0; padding: 0; overflow: hidden; color: #f7f5f0; background: radial-gradient(ellipse at 100% 0, #7e602b16, transparent 42%), #111216; font: 17px/1.65 'Segoe UI', Arial, sans-serif; }
.studio #ai-chatbox.rw-chat { height: 740px; border: 1px solid #dfbf7440; border-radius: 28px; box-shadow: 0 30px 100px #0005, 0 0 90px #e8be5510; }
.rw-chat button, .rw-chat textarea, .rw-launcher { font-family: inherit; }
.rw-chat :is(button, a, textarea):focus-visible, .rw-launcher:focus-visible { outline: 2px solid #f4d788; outline-offset: 4px; }
.rw-chat button { cursor: pointer; }
.rw-chat button:disabled { opacity: .4; cursor: default; }
.rw-chat-header { display: flex; align-items: center; gap: 12px; padding: 22px 24px; border-bottom: 1px solid #ffffff12; flex: 0 0 auto; }
.rw-chat-mark { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; object-fit: contain; }
.rw-chat-brand { min-width: 0; }
.studio .rw-chat-brand h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.studio .rw-chat-brand p { margin: 4px 0 0; font-size: 14px; color: #bdb9b2; line-height: 1.45; }
.rw-chat-controls { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.studio .rw-chat-icon { display: grid; place-items: center; border: 0; border-radius: 10px; width: 38px; height: 40px; flex-shrink: 0; background: none; color: #d3cfc4; text-decoration: none; font-size: 24px; font-weight: 400; line-height: 1; }
.studio .rw-chat-icon:hover { background: #ffffff0d; color: #f7d57b; }
.rw-chat-messages { flex: 1 1 auto; min-height: 0; padding: 28px 26px 16px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #514a3d transparent; scroll-padding-block: 20px; }
.rw-chat-messages:focus-visible { outline: 1px solid #8c7544; outline-offset: -3px; }
.rw-chat-welcome { padding: 12px 4px 22px; }
.studio .rw-chat-eyebrow { display: block; color: #cdbf9e; font-size: 15px; margin-bottom: 18px; }
.studio .rw-chat-welcome h3 { font-size: 36px; line-height: 1.13; letter-spacing: -.045em; margin: 0 0 18px; max-width: 360px; }
.studio .rw-chat-welcome p { color: #c2c0be; font-size: 17px; line-height: 1.7; margin: 0; max-width: 470px; }
.rw-chat-prompts { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid #ffffff19; }
.rw-chat-prompt { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: none; color: #e5dfd3; padding: 15px 0; border: 0; border-bottom: 1px solid #ffffff19; text-align: left; font-size: 16px; line-height: 1.4; }
.rw-chat-prompt:hover { color: #f6d584; }
.rw-chat-prompt > span:last-child { font-size: 22px; color: #d8b565; padding-right: 2px; }
.rw-message { margin-bottom: 28px; min-width: 0; }
.rw-message-label { display: block; color: #dfc688; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rw-message-user { padding: 18px 20px; border: 1px solid #ffffff12; border-radius: 18px 18px 4px 18px; background: #ffffff06; margin-left: 35px; }
.rw-message-user .rw-message-label { color: #c2c0be; }
.rw-message-body { font-size: 17px; overflow-wrap: anywhere; }
.studio .rw-message-body p { font-size: inherit; color: inherit; line-height: 1.7; margin: 0 0 14px; }
.studio .rw-message-body p:last-child { margin-bottom: 0; }
.rw-message-body ul { padding-left: 22px; margin: 12px 0; }
.rw-message-body li { padding: 3px 0 3px 3px; }
.rw-message-body li::marker { color: #d6b876; }
.rw-message-body strong { color: #fff5dc; font-weight: 600; }
.rw-message-body a { color: #f0cd78; text-decoration: underline; text-underline-offset: 3px; }
.rw-message-body pre { max-width: 100%; overflow: auto; background: #07080a; border: 1px solid #ffffff1a; padding: 16px; border-radius: 12px; }
.rw-message-body code { font: 15px/1.65 Consolas, monospace; background: #ffffff07; padding: 2px 4px; border-radius: 4px; }
.rw-message-body pre code { background: none; padding: 0; }
.rw-answer-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.studio .rw-chat-copy { background: none; border: 0; border-bottom: 1px solid #6b624e; color: #cbbd9f; font-size: 14px; line-height: 1.4; padding: 10px 0 5px; margin-top: 8px; min-height: 36px; }
.rw-chat-copy:hover { color: #ffe2a0; }
.studio .rw-message-body .rw-chat-error { color: #f2bcaa; border-left: 2px solid #c47e65; padding-left: 12px; margin-top: 15px; }
.studio .rw-message-body .rw-chat-wait { color: #c4b894; }
.rw-chat-wait::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #eac570; animation: rw-wait 1.1s ease-in-out infinite alternate; }
@keyframes rw-wait { to { opacity: .35; } }
.studio .rw-chat-status { flex: 0 0 auto; min-height: 23px; font-size: 14px; line-height: 1.45; color: #c5bda9; margin: 0 26px 8px; }
.studio .rw-chat-composer { position: relative; display: flex; align-items: end; flex: 0 0 auto; gap: 10px; margin: 0 22px; border: 1px solid #8d784c; border-radius: 17px; padding: 9px; background: #090a0c; }
.rw-chat-composer:focus-within { border-color: #e8be55; box-shadow: 0 0 0 3px #e8be550c; }
.studio .rw-chat-composer textarea { width: 100%; min-width: 0; min-height: 45px; max-height: 150px; border: 0; border-radius: 0; background: none; color: #f7f5f0; outline: none; box-shadow: none; resize: none; padding: 9px 6px 7px 8px; font: 17px/1.55 'Segoe UI', Arial, sans-serif; }
.studio .rw-chat-composer textarea::placeholder { color: #aaa69e; opacity: 1; }
.studio .rw-chat-send { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid #edca6c; border-radius: 11px; background: linear-gradient(125deg, #f5db8c, #e3b94b); color: #201b10; font-size: 25px; line-height: 1; }
.rw-chat-send:hover { filter: brightness(1.1); }
.rw-chat-send[aria-label='Stopp svaret'] { font-size: 15px; }
.rw-chat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 12px; padding: 13px 20px 17px; font-size: 13px; line-height: 1.5; color: #b4b0a6; flex: 0 0 auto; }
.rw-chat-foot a { color: #d0c8b6; text-decoration: underline; text-underline-offset: 3px; }
.studio .rw-chat-latest { position: absolute; bottom: 156px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 10px 15px; color: #f4e6c7; background: #26231c; border: 1px solid #8b774e; border-radius: 10px; box-shadow: 0 5px 20px #0007; font-size: 14px; z-index: 2; }
.rw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ai-studio-hero { padding-block: 64px 100px; background: radial-gradient(ellipse at 80% 45%, #96703014, transparent 60%); }
.ai-studio-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 70px; }
.ai-studio-copy { padding-block: 30px; }
.studio .ai-studio-copy h1 { font-size: clamp(48px, 4.6vw, 68px); line-height: 1.08; margin-bottom: 30px; }
.ai-studio-copy > p { max-width: 460px; font-size: 20px; line-height: 1.75; }
.ai-studio-copy .overline { color: var(--studio-gold); }
.ai-studio-points { margin: 34px 0; padding: 0; list-style: none; }
.ai-studio-points li { padding: 13px 0; display: flex; gap: 14px; border-top: 1px solid #ffffff12; font-size: 17px; color: #d4d0c6; }
.ai-studio-points li::before { content: '↗'; color: var(--studio-gold); }
.studio #ai-chatbox .rw-chat-header { padding: 24px 30px; }
.studio #ai-chatbox .rw-chat-messages { padding: 34px 36px 18px; }
.studio #ai-chatbox .rw-chat-welcome { padding-block: 24px; }
.studio #ai-chatbox .rw-chat-welcome h3 { font-size: 43px; }
.studio #ai-chatbox .rw-chat-welcome p, .studio #ai-chatbox .rw-message-body { font-size: 18px; }
.studio #ai-chatbox .rw-chat-prompt { font-size: 17px; padding-block: 17px; }
.studio #ai-chatbox .rw-chat-composer { margin-inline: 28px; }
.studio #ai-chatbox .rw-chat-status { margin-inline: 32px; }
.ai-pricing-note { padding: 38px 0 0; border-top: 1px solid var(--studio-line); margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ai-pricing-note strong { font-size: 26px; font-weight: 500; color: var(--studio-gold); }
.ai-pricing-note p { margin: 12px 0 0; font-size: 18px; max-width: 540px; }
@media (max-width: 1150px) {
  .ai-studio-layout { gap: 35px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .studio .ai-studio-copy h1 { font-size: 47px; }
}
@media (max-width: 900px) {
  .ai-studio-layout { grid-template-columns: 1fr; gap: 32px; }
  .ai-studio-hero { padding-block: 35px 65px; }
  .ai-studio-copy { padding-block: 0; }
  .ai-studio-copy > p { max-width: 620px; }
  .ai-studio-points { display: none; }
  .ai-studio-copy .text-link { display: none; }
  .studio #ai-chatbox.rw-chat { height: 720px; }
}
@media (max-width: 560px) {
  .studio #ruud-chat { right: 14px; bottom: 14px; }
  .studio .rw-launcher { min-height: 54px; font-size: 16px; padding: 9px 14px 9px 10px; border-radius: 16px; }
  .studio .rw-chat-dialog { inset: auto 10px max(10px, var(--chat-bottom, 0px)) 10px; width: auto; border-radius: 22px; }
  .studio .rw-chat { height: min(720px, calc(var(--chat-viewport, 100dvh) - 20px)); }
  .studio #ai-chatbox.rw-chat { height: min(720px, calc(100dvh - 100px)); min-height: 440px; border-radius: 22px; }
  .rw-chat-header, .studio #ai-chatbox .rw-chat-header { padding: 17px 14px; gap: 8px; }
  .rw-chat-mark { width: 34px; height: 34px; }
  .studio .rw-chat-brand h2 { font-size: 19px; }
  .studio .rw-chat-brand p { display: none; }
  .studio .rw-chat-icon { width: 35px; height: 36px; }
  .rw-chat-messages, .studio #ai-chatbox .rw-chat-messages { padding: 23px 18px 12px; }
  .rw-chat-welcome, .studio #ai-chatbox .rw-chat-welcome { padding: 8px 0 14px; }
  .studio .rw-chat-welcome h3, .studio #ai-chatbox .rw-chat-welcome h3 { font-size: 31px; }
  .studio .rw-chat-welcome p, .studio #ai-chatbox .rw-chat-welcome p, .studio #ai-chatbox .rw-message-body { font-size: 17px; }
  .rw-chat-prompts { margin-top: 24px; }
  .studio #ai-chatbox .rw-chat-prompt { font-size: 16px; padding-block: 15px; }
  .rw-message-user { margin-left: 20px; padding: 14px 16px; }
  .rw-chat-composer, .studio .rw-chat-composer, .studio #ai-chatbox .rw-chat-composer { margin-inline: 12px; }
  .studio .rw-chat-status, .studio #ai-chatbox .rw-chat-status { margin-inline: 18px; }
  .rw-chat-foot { padding: 11px 12px 13px; font-size: 12px; gap: 6px 10px; }
  .studio .ai-studio-copy h1 { font-size: clamp(40px, 10vw, 52px); }
  .ai-studio-copy > p { font-size: 18px; }
  .ai-pricing-note { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { .rw-chat *, .rw-launcher { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
