.site-logo small{white-space:nowrap;max-width:none!important;width:auto!important}
body #loginScreen .login-layout{max-width:940px;grid-template-columns:1fr 1.05fr;align-items:stretch}
body #loginScreen .login-visual{padding:20px!important;justify-content:center;gap:16px}
body #loginScreen .login-visual>img{aspect-ratio:3/4!important;width:100%!important;height:auto!important;max-height:510px;object-fit:contain!important;margin:0!important;border-radius:3px}
body #loginScreen .login-visual-copy{padding:0 6px}
body #loginScreen .login-visual-copy p{font-size:13px!important;margin:8px 0 0!important}
body #loginScreen .login-tag{font-size:9px;letter-spacing:.12em}
body #w-asystent .asystent{max-width:900px!important;width:100%;margin:0 auto!important;padding:30px 0 60px;min-height:0;display:block}
body #w-asystent .asystent-hero{text-align:left;padding:18px 0 26px}
body #w-asystent .asystent-znak{display:none}
body #w-asystent .asystent-hero h1{font-size:clamp(28px,3vw,40px);letter-spacing:-.045em;margin:0 0 12px}
body #w-asystent .asystent-hero p{margin:0;max-width:59ch;font-size:15px;line-height:1.65}
body #w-asystent .kompozytor-rozmowy{position:static!important;bottom:auto;z-index:auto;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:22px;box-shadow:none;margin:0}
body #w-asystent .kompozytor-rozmowy.dragging{border-color:var(--acc)}
body #w-asystent #wiadomosc{min-height:120px;font:inherit;font-size:16px;line-height:1.65;padding:20px 0;resize:vertical;background:transparent;border:0;border-radius:0}
body #w-asystent #wiadomosc:focus{outline:0!important;box-shadow:none!important}
body #w-asystent .kompozytor-rozmowy:focus-within{border-color:var(--acc)}
.assistant-ref-heading{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.assistant-ref-heading>span{font-size:12px;color:var(--dim)}
.assistant-refs p{font-size:11px;line-height:1.6;color:var(--dim);margin:10px 0 0}
#assistantThumbs{display:flex;gap:10px;overflow:auto;padding-top:12px}
#assistantThumbs:empty{display:none}
.assistant-thumb{padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--txt);min-width:100px;cursor:pointer}
.assistant-thumb[aria-pressed=true]{border-color:var(--acc);background:#302219}
.assistant-thumb img{width:92px;height:78px;object-fit:cover;border-radius:3px;display:block}
.assistant-thumb span{font-size:10px;display:block;margin:5px 0}
body #w-asystent .kompozytor-dol{border-top:1px solid var(--line);padding-top:16px;gap:14px}
body #w-asystent .kompozytor-dol .note{font-size:10px;max-width:43ch;line-height:1.5}
body #w-asystent #wyslijWiadomosc{width:auto;height:auto;border-radius:7px;padding:12px 18px;gap:14px;display:flex;font:700 13px Manrope,sans-serif}
#wyslijWiadomosc:disabled{opacity:.5;cursor:wait}
.assistant-reset{display:block;margin:0 0 0 auto;border:0;background:none;color:var(--dim);font:inherit;font-size:12px;padding:8px;cursor:pointer}
body #w-asystent .chipy-startowe{justify-content:flex-start;margin:18px 0;gap:8px}
body #w-asystent .chipy-startowe button{border-radius:6px;font-size:12px}
body #w-asystent .asystent-przyklady{display:none}
body #w-asystent .rozmowa{padding:16px 0;max-height:none}
body #w-asystent .msg-a{background:transparent;border:0;border-radius:0;padding:18px 0;font-size:15px;line-height:1.8;white-space:pre-wrap;max-width:100%}
body #w-asystent .msg-k{background:var(--card);font-size:14px;line-height:1.7;border:1px solid var(--line);border-radius:8px;padding:16px 20px}
body #w-asystent .propozycja{border-radius:8px;padding:24px;border:1px solid #66503e;background:var(--card);margin:8px 0 22px;width:100%;max-width:100%;box-sizing:border-box}
body #w-asystent .propozycja p{font-size:15px;line-height:1.75;white-space:pre-wrap}
@media(max-width:850px){body #loginScreen .login-layout{grid-template-columns:1fr;max-width:530px}body #loginScreen .login-visual{display:none!important}}
@media(max-width:600px){body #w-asystent .asystent{padding:12px 0 40px}body #w-asystent .kompozytor-rozmowy{padding:16px}body #w-asystent .kompozytor-dol{align-items:center}body #w-asystent .kompozytor-dol .note{font-size:10px;max-width:22ch}.assistant-ref-heading{gap:10px}.assistant-ref-heading>span{font-size:11px}}

/* E11: quiet chat, readable thread, account-local history. */
html body.panel #w-asystent.on{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;align-items:start;max-width:1220px;margin-inline:auto}
html body.panel #w-asystent .asystent{width:100%;max-width:760px;min-width:0;margin:0 auto;min-height:calc(100dvh - 160px);padding:0;display:flex;flex-direction:column}
.assistant-history{position:static;border-right:1px solid #3b3229;padding-right:20px;min-width:0;max-height:none;overflow:visible}
.assistant-history header{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px!important}.assistant-history h2{font-size:16px;font-weight:500;margin:0}.assistant-history>#historyNew{width:100%;min-height:42px;font-size:13px;border-radius:10px}
.assistant-history-note,.assistant-history-empty,#historyStatus{font-size:11px;color:#b3a693;line-height:1.7;margin:14px 0}
.assistant-history-row{display:flex;align-items:center;gap:4px;border:1px solid transparent;border-radius:10px;margin:6px 0}
.assistant-history-row.is-current{background:#271f19;border-color:#3b3229}
.assistant-history-row button{color:#b3a693;background:none;border:0;text-align:left;cursor:pointer;min-width:0;padding:12px 10px}
.assistant-history-row button[data-conversation]{flex:1}.assistant-history-row b{display:block;color:#f6f1eb;font-size:12px;line-height:1.5;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:150px}.assistant-history-row time{display:block;margin-top:5px;font:10px 'JetBrains Mono',monospace}.assistant-history-row .history-delete{font-size:20px;padding:10px;flex:none}
.assistant-chat-header{display:flex!important;align-items:center;gap:12px;margin:0 0 24px!important;padding-bottom:16px;border-bottom:1px solid #3b3229}.assistant-chat-header h1{font-size:20px!important;letter-spacing:-.5px!important;margin:0!important;flex:1}.assistant-chat-header .btn{font-size:12px;padding:8px 12px;min-height:38px}
#historyToggle,#historyClose{display:none}
html body.panel #w-asystent .asystent-hero{padding:44px 0 20px;text-align:left;max-width:540px}
html body.panel #w-asystent .asystent-znak{display:none}
html body.panel #w-asystent .asystent-hero h1{font-size:32px;line-height:1.2;letter-spacing:-1px}
html body.panel #w-asystent .asystent-hero p{font-size:14px;line-height:1.8;margin:14px 0 0;max-width:52ch}
html body.panel #w-asystent .assistant-howto{font-size:12px;margin-top:14px;display:inline-block}
html body.panel #w-asystent #rozmowa{display:flex;flex-direction:column;gap:26px;padding:12px 0 26px;max-width:100%;margin:0}
html body.panel #w-asystent #rozmowa.hidden{display:none}
html body.panel #w-asystent :is(.msg-a,.msg-k){font-size:15px;line-height:1.85;white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:0;margin:0;border:0;box-shadow:none}
html body.panel #w-asystent .msg-a{background:none;color:#eee6dc;width:100%;align-self:start}
html body.panel #w-asystent .msg-k{background:#2b231d;border:1px solid #3b3229;border-radius:14px;padding:14px 18px;max-width:88%;align-self:end}
html body.panel #w-asystent :is(.msg-a,.msg-k) p{margin:0 0 12px}html body.panel #w-asystent :is(.msg-a,.msg-k) p:last-child{margin-bottom:0}
html body.panel #w-asystent .propozycja{border:1px solid #574132;border-radius:18px;background:#211b16;padding:24px;margin:0;max-width:100%}
html body.panel #w-asystent .propozycja p{font-size:14px;line-height:1.8;margin:14px 0;white-space:pre-line}
html body.panel #w-asystent .propozycja .dane{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px;color:#b3a693;font:11px 'JetBrains Mono',monospace}
html body.panel #w-asystent .propozycja [data-uzyj]{background:none;border:1px solid #574132;color:#f6f1eb;margin-right:8px}
html body.panel #w-asystent .propozycja .btn{border-radius:10px!important;font-size:12px;margin-top:8px;white-space:normal}
html body.panel #w-asystent #kompozytorRozmowy{position:sticky;bottom:18px;z-index:5;background:#1f1b17;border:1px solid #574132;border-radius:18px;padding:18px;box-shadow:none;margin-top:auto;order:5}
html body.panel #w-asystent #wiadomosc{min-height:70px;max-height:210px;background:none;border:0;padding:8px 0;font-size:15px;line-height:1.6;resize:vertical;color:#f6f1eb}
html body.panel #w-asystent .assistant-refs{padding:0 0 10px;margin:0;border:0;background:none}.assistant-ref-heading{gap:10px}.assistant-ref-heading>span{font-size:11px!important}
html body.panel #w-asystent #assistantRefNote{font-size:10px;margin:6px 0;color:#b3a693}
html body.panel #w-asystent .kompozytor-dol{display:flex;gap:14px;align-items:center;margin-top:10px;padding-top:12px;border-top:1px solid #3b3229}
html body.panel #w-asystent .kompozytor-dol .note{font-size:10px;line-height:1.6}
html body.panel #w-asystent #wyslijWiadomosc{flex:0 0 auto!important;width:auto!important;min-width:90px!important;border-radius:10px!important;padding:12px 16px!important;white-space:nowrap!important;background:#ff7654;color:#14120f;font-size:13px}
html body.panel #w-asystent .asystent-przyklady{display:none}
html body.panel #w-asystent .chipy-startowe{display:flex;flex-wrap:wrap;justify-content:start;gap:8px;margin:10px 0 30px}
html body.panel #w-asystent .chipy-startowe button{border-radius:10px;font-size:12px;padding:10px 12px;white-space:normal}
@media(max-width:1050px){html body.panel #w-asystent.on{grid-template-columns:190px minmax(0,1fr);gap:22px}.assistant-history-row b{max-width:115px}}
@media(max-width:760px){html body.panel #w-asystent.on{display:block}#historyToggle,#historyClose{display:inline-flex}.assistant-history{display:none;position:static;border:1px solid #3b3229;border-radius:18px;padding:16px;margin-bottom:18px;max-height:none}.history-open .assistant-history{display:block}.assistant-history-row b{max-width:240px}.assistant-chat-header{gap:8px}.assistant-chat-header h1{font-size:18px!important}.assistant-chat-header .btn{padding:8px;font-size:11px}html body.panel #w-asystent .asystent-hero{padding:20px 0}html body.panel #w-asystent .asystent-hero h1{font-size:27px}html body.panel #w-asystent #kompozytorRozmowy{bottom:78px;padding:14px}html body.panel #w-asystent .propozycja{padding:18px}html body.panel #w-asystent .assistant-ref-heading>span{display:none}html body.panel #w-asystent .asystent{min-height:calc(100dvh - 180px)}}
/* Keep the composer and conversation header in view during long conversations. */
html body.panel #w-asystent .asystent{height:auto;min-height:0!important;max-width:760px!important;padding:0!important}
html body.panel #w-asystent .assistant-chat-header{flex-shrink:0;margin-bottom:12px!important}
html body.panel #w-asystent #rozmowa{flex:none;min-height:0;max-height:none;overflow:visible;padding-right:0}
html body.panel #w-asystent #kompozytorRozmowy{position:sticky!important;bottom:0;flex-shrink:0;margin-top:12px;padding:14px}
html body.panel #w-asystent #assistantThumbs{max-height:none;padding-top:8px;flex-wrap:wrap;overflow:visible}
html body.panel #w-asystent .assistant-thumb img{height:46px;width:64px}
html body.panel #w-asystent .assistant-thumb{min-width:72px}
html body.panel #w-asystent #assistantRefNote{display:none}
html body.panel #w-asystent .propozycja{box-shadow:none!important}
@media(max-width:760px){html body.panel #w-asystent .asystent{height:auto;min-height:0!important}html body.panel #w-asystent #rozmowa{padding-right:4px}html body.panel #w-asystent #kompozytorRozmowy{padding:12px}html body.panel #w-asystent .kompozytor-dol{padding-top:8px;margin-top:4px}html body.panel #w-asystent .assistant-chat-header{margin-bottom:6px!important}}

html body.panel #w-asystent .asystent{height:auto;min-height:0!important}
@media(max-width:760px){html body.panel #w-asystent #kompozytorRozmowy{bottom:78px}}

html body.panel #w-asystent .assistant-refs-fold{border:0;background:none;padding:0;margin:0 0 8px}
html body.panel #w-asystent .assistant-refs-fold>summary{padding:2px 0!important;border:0;font-size:12px;color:#b3a693;cursor:pointer}
html body.panel #w-asystent .assistant-refs-fold[open]{max-height:none;overflow:visible}
html body.panel #w-asystent .assistant-refs-fold .assistant-refs{padding-top:12px}
html body.panel #w-asystent #wiadomosc{height:auto;min-height:70px!important;max-height:none!important;overflow:hidden!important;resize:none;padding:8px 0!important}
html body.panel #w-asystent .kompozytor-dol{flex-direction:row;align-items:center;gap:12px}
html body.panel #w-asystent .kompozytor-dol .note{font-size:10px;flex:1;min-width:0}

/* E12: long conversations and history use the document scroll. */
html body.panel #w-asystent .assistant-history{max-height:none;overflow:visible}
html body.panel #w-asystent .asystent{height:auto;min-height:0!important;max-height:none;overflow:visible}
html body.panel #w-asystent #kompozytorRozmowy{bottom:18px}
html body.panel #w-asystent #kompozytorRozmowy.e12-compose-tall{position:static!important}
html body.panel #w-asystent #rozmowa>*{scroll-margin-top:110px;scroll-margin-bottom:240px}
@media(max-width:760px){html body.panel #w-asystent #kompozytorRozmowy{bottom:78px}html body.panel #w-asystent #rozmowa>*{scroll-margin-bottom:300px}}
