/* =====================================================================================
   LND Aura portal, second layer: the side list, how a shared bot appears (full page, floating window, orb),
   the live theme preview, and finishing touches. Loaded after portal.css.
   ===================================================================================== */

/* ----- the side list ----- */
.side { position: fixed; z-index: 30; left: 16px; top: 88px; bottom: 16px; width: 248px; padding: 14px 12px; border-radius: 26px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel-solid) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .7); overflow-y: auto; display: none; }
.sd-h { margin: 14px 10px 6px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; } .sd-h:first-child { margin-top: 4px; }
.sd-i { position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 13px; color: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background-color .2s, color .2s; }
.sd-i:hover { background: var(--panel); color: var(--ink); } .sd-i.on { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); } .sd-i.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent2)); }
.sd-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sd-i small { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.sd-orb { width: 22px; height: 22px; flex: none; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--accent) 45%, var(--accent2) 75%, #14102e); box-shadow: 0 0 14px -2px var(--accent); }
.sd-av { width: 22px; height: 22px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 700 14px var(--serif); color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.sd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); } .sd-dot.ok { background: #6fe3a8; box-shadow: 0 0 0 3px color-mix(in srgb, #6fe3a8 22%, transparent); } .sd-dot.warn { background: #ffcf6e; } .sd-dot.off { background: #ff8a8a; }
.sd-none { margin: 4px 12px 8px; color: var(--muted); font-size: 13px; line-height: 1.45; } .sd-new { display: flex; align-items: center; justify-content: center; margin: 8px 4px 4px; height: 38px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; } .sd-new:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
@media (min-width: 1180px) { body.hasside .side { display: block; } body.hasside .pwrap { margin-left: max(280px, calc((100% - 1180px) / 2 + 20px)); width: min(1180px, calc(100% - 320px)); } }
.mn-bot { font-size: 15px !important; color: var(--soft); }

/* ----- the top bar: a little more finish ----- */
.nav .logo { gap: 8px; } .links a { position: relative; } .links a.cur::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.card { transition: border-color .25s; } .card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line2)); }
.card h2 { display: flex; align-items: center; gap: 10px; } .card h2::before { content: ""; width: 5px; height: 22px; border-radius: 5px; background: linear-gradient(var(--accent), var(--accent2)); flex: none; }
.bcard { position: relative; overflow: hidden; } .bcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3)); opacity: .8; }
.btn.solid { box-shadow: 0 12px 28px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ph h1 { background: none; } .ph .eyebrow { margin: 0 0 10px; }

/* ----- how a shared bot appears ----- */
.shows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.show { display: grid; gap: 10px; justify-items: start; text-align: left; padding: 14px; border-radius: 20px; border: 1px solid var(--line2); background: var(--panel2); transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.show:hover { transform: translateY(-2px); border-color: var(--accent); } .show[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.show b { font-size: 15.5px; } .show span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.show .pic { position: relative; width: 100%; height: 86px; border-radius: 14px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--bg0) 70%, transparent); overflow: hidden; }
.pic i { position: absolute; display: block; } .pic .l1, .pic .l2 { height: 6px; border-radius: 4px; background: var(--line2); }
.pic.full .t { left: 8px; right: 8px; top: 8px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 60%, transparent); } .pic.full .l1 { left: 8px; width: 55%; top: 28px; } .pic.full .l2 { right: 8px; width: 45%; top: 44px; background: color-mix(in srgb, var(--accent2) 55%, transparent); } .pic.full .b { left: 8px; right: 8px; bottom: 8px; height: 14px; border-radius: 9px; border: 1px solid var(--line2); }
.pic.float .w { right: 10px; bottom: 8px; width: 46%; height: 64px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel-solid); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); } .pic.float .l1 { right: 18px; width: 30%; bottom: 44px; } .pic.float .l2 { right: 18px; width: 22%; bottom: 32px; background: color-mix(in srgb, var(--accent) 55%, transparent); } .pic.float .page { left: 10px; top: 10px; width: 36%; height: 8px; border-radius: 4px; background: var(--line2); box-shadow: 0 14px 0 var(--line), 0 28px 0 var(--line); }
.pic.orb .o { left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--accent) 45%, var(--accent2) 75%, #14102e); box-shadow: 0 0 26px -2px var(--accent); }
@media (max-width: 760px) { .shows { grid-template-columns: 1fr; } .show { grid-template-columns: 110px 1fr; align-items: center; } .show .pic { height: 70px; grid-row: span 2; } }

/* ----- the live preview next to the look picker ----- */
.lookrow { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; } .lookrow .look { align-content: start; }
.pvwrap { position: sticky; top: 92px; } .pvlab { margin: 0 0 8px; font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pvframe { width: 100%; height: 470px; border: 1px solid var(--line2); border-radius: 22px; background: var(--bg0); box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .8); }
@media (max-width: 900px) { .lookrow { grid-template-columns: 1fr; } .pvwrap { position: static; } .pvframe { height: 380px; } }
.tryframe { width: 100%; height: min(74dvh, 760px); min-height: 520px; border: 1px solid var(--line2); border-radius: 26px; background: var(--bg0); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8); }
.tryhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: 14px; }

/* ----- the shared bot page: the text box, and the three ways it can appear ----- */
.composer { align-items: center; }
.composer textarea, .composer textarea:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0; padding: 10px 4px; }
.composer { transition: border-color .2s, box-shadow .2s; } .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 20px 50px -26px rgba(0, 0, 0, .7); }
body.chatpg.d-float:not(.embed) { display: grid; place-items: center; padding: 20px; } body.chatpg.d-float:not(.embed) .cshell { width: min(470px, 100%); height: min(720px, calc(100dvh - 40px)); border-radius: 30px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel-solid) 82%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85); overflow: hidden; }
body.chatpg.d-float:not(.embed) .chead { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 60%, transparent); padding: 14px 16px; } body.chatpg.d-float:not(.embed) .chead h1 { font-size: 21px; }
@media (max-width: 560px) { body.chatpg.d-float:not(.embed) { padding: 0; } body.chatpg.d-float:not(.embed) .cshell { width: 100%; height: 100dvh; border-radius: 0; border: 0; } }
body.chatpg.embed .cshell { width: 100%; } body.chatpg.embed .chead { padding-top: 12px; } body.chatpg.embed #backdrop .grid-lines { display: none; }
.orbstage { display: none; }
body.chatpg.d-orb:not(.embed):not(.open) .cshell { display: none; }
body.chatpg.d-orb:not(.embed):not(.open) .orbstage { position: relative; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 18px; height: 100dvh; padding: 24px; text-align: center; }
.orbstage canvas { cursor: pointer; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 45%, transparent)); transition: transform .4s var(--ease); } .orbstage canvas:hover { transform: scale(1.04); }
.orbstage h1 { margin: 0; font: 700 clamp(32px, 6vw, 48px)/1.1 var(--serif); } .orbstage p { margin: 0; color: var(--soft); max-width: 40ch; }
.orbstage .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
body.chatpg.d-orb:not(.embed).open .cshell { animation: pop .35s var(--ease) both; } body.chatpg .chead .closebtn { display: none; } body.chatpg.d-orb:not(.embed) .chead .closebtn { display: inline-grid; }
.m.bot, .m.me { animation: rise .3s var(--ease) both; }

.appframe { display: block; width: 100%; height: calc(100dvh - 190px); min-height: 520px; border: 1px solid var(--line2); border-radius: 26px; background: var(--bg0); box-shadow: 0 30px 70px -40px rgba(0,0,0,.8); }
@media (max-width: 640px) { .appframe { height: calc(100dvh - 220px); border-radius: 18px; } }

/* the main chatbot fills the whole space to the right of the side list */
body.appview { overflow: hidden; } body.appview .pwrap { padding: 0; margin: 0; width: 100%; }
body.appview #viewApp .tryhead { display: none; }
body.appview .appframe { position: fixed; z-index: 5; top: 84px; left: 12px; width: calc(100vw - 24px); height: calc(100dvh - 96px); min-height: 0; border-radius: 24px; }
@media (min-width: 1180px) { body.appview .appframe { left: 280px; top: 88px; width: calc(100vw - 296px); height: calc(100dvh - 104px); } }

/* softer shadows (the left edge looked too dark) */
.side { box-shadow: 0 18px 44px -30px rgba(20, 14, 40, .28); } :root[data-theme="paper"] .side { box-shadow: 0 14px 36px -28px rgba(40, 30, 10, .22); }
.appframe, body.appview .appframe { box-shadow: 0 16px 40px -30px rgba(20, 14, 40, .3); }

/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="pro"] .side { box-shadow: 0 14px 36px -28px rgba(40, 30, 10, .22); }

/* the same light-mode adjustments for the amber and teal light themes */
/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="ember-light"] .side { box-shadow: 0 14px 36px -28px rgba(40, 30, 10, .22); }
/* the flat Professional theme shares the light theme's adjustments */
:root[data-theme="tide-light"] .side { box-shadow: 0 14px 36px -28px rgba(40, 30, 10, .22); }
