/* Stilist v23: acelasi limbaj vizual ca chatul org.aipro.ro (cer albastru, sticla, bule albe, compozitor pastila) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
body.g.sty-page{--sky:var(--sky-grad);--dark:#1e1f22;--ink:#1b1c20;--mut:rgba(27,28,32,.5);--sep:rgba(27,28,32,.08);
 max-width:430px;font-family:Inter,-apple-system,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
 background:radial-gradient(70% 40% at 55% 62%,var(--sky-glow),transparent 70%),var(--sky)}
html:has(.sty-page){background:var(--sky-top)}
.sty-page .gtop,.sty-page .gback{display:none}
.sty-page>main{height:100vh;height:100dvh;overflow:hidden}
.sty{height:100%;display:grid;grid-template-rows:auto 1fr auto;background:none}
@keyframes stypop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
/* bara sus */
.sty-head{position:relative;z-index:5;display:flex;align-items:center;gap:10px;padding:calc(14px + var(--safe-t)) 16px 12px;color:#fff}
.sty-head:before{content:'';position:absolute;inset:0 0 -24px;z-index:-1;background:linear-gradient(180deg,var(--sky-top) 55%,var(--sky-top0));pointer-events:none}
.sty-head>div{flex:1;min-width:0;display:flex;flex-direction:column}.sty-head b{font-size:17px;font-weight:600;letter-spacing:-.01em}
.sty-head small{font-size:13px;color:rgba(255,255,255,.78);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sty-avatar{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#0b1f4d;color:#4aa8ff;font:700 15px Inter,system-ui;font-style:normal;border:2px solid rgba(255,255,255,.4)}
.sty-icon{flex:none;width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.28);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:var(--ink);box-shadow:none}.sty-icon svg{width:20px;height:20px}
/* conversatie */
.sty-chat{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:18px 16px 24px;scroll-behavior:smooth}
.sty-loading,.sty-error,.sty-day{align-self:center;font-size:13px;color:rgba(255,255,255,.85)}
.sty-day{padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.22);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.sty-bubble{max-width:84%;padding:13px 17px;border-radius:22px;font-size:16px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;animation:stypop .35s ease}
.sty-bubble.ai{align-self:flex-start;background:rgba(255,255,255,.92);border:0}
.sty-bubble.me{align-self:flex-end;background:var(--me-bubble);color:var(--ink);border:0}
.sty-block{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
/* carduri sticla */
.sty-product,.sty-outfit,.sty-job{border:1px solid rgba(255,255,255,.5);background:var(--glass-tint);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);animation:stypop .35s}
.sty-product{align-self:flex-start;width:min(92%,380px);display:grid;grid-template-columns:68px 1fr auto;gap:12px;padding:10px;border-radius:22px}
.sty-product>img{width:68px;height:86px;object-fit:cover;border-radius:14px;background:rgba(255,255,255,.6)}
.sty-product>div{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:1px}
.sty-product b{font-size:15px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sty-product small{font-size:13px;color:var(--mut)}.sty-product small.ok{color:#2e9e5b;font-weight:500}.sty-product small.bad{color:#d93025}
.sty-product>button{align-self:center;border:0;padding:9px 15px;border-radius:999px;background:var(--dark);color:#fff;font:500 13px Inter,system-ui}
.sty-source{align-self:flex-start;margin-bottom:4px;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.75);font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--mut)}
.sty-job{align-self:flex-start;display:flex;align-items:center;gap:10px;padding:13px 17px;border-radius:22px;color:var(--mut);font-size:14px}
.sty-job i{width:15px;height:15px;border-radius:50%;border:2px solid rgba(27,28,32,.15);border-top-color:var(--dark);animation:styspin .8s linear infinite}@keyframes styspin{to{transform:rotate(360deg)}}
.sty-outfit{align-self:flex-start;width:min(94%,390px);overflow:hidden;border-radius:22px}
.sty-look{position:relative}.sty-look>img{width:100%;aspect-ratio:4/5;object-fit:cover}
.sty-look>span{position:absolute;top:12px;left:12px;padding:5px 10px;border-radius:999px;background:rgba(30,31,34,.82);color:#fff;font-size:12px;font-weight:500}
.sty-thumbs{display:flex;gap:6px;overflow:auto;padding:12px 14px 4px}.sty-thumbs img{flex:none;width:44px;height:56px;border-radius:10px;object-fit:cover}
.sty-outfit>p{padding:4px 16px 10px;color:var(--mut);font-size:13px}.sty-outfit>p b{color:var(--ink);font-weight:600}
.sty-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 14px}
.sty-actions button{min-height:44px;padding:10px;border:0;border-radius:999px;background:rgba(255,255,255,.75);color:var(--ink);font:500 14px Inter,system-ui}
.sty-actions .primary{grid-column:1/-1;background:var(--dark);color:#fff;font-size:15px}
/* compozitor */
.sty-compose{padding:4px 16px calc(14px + var(--safe-b));border:0;background:none}
.sty-quick{display:flex;gap:8px;overflow:auto;padding:2px 0 10px;scrollbar-width:none}.sty-quick::-webkit-scrollbar{display:none}
.sty-quick button{flex:none;border:0;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--ink);font:500 14px Inter,system-ui}
.sty-compose form{display:flex;gap:6px;align-items:flex-end;padding:6px;border-radius:26px;background:rgba(240,243,245,.82);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.6)}
.sty-compose textarea{flex:1;min-width:0;min-height:40px;max-height:112px;padding:9px 4px;border:0;outline:0;background:none;resize:none;font:400 17px/22px Inter,system-ui;color:var(--ink)}
.sty-compose textarea::placeholder{color:rgba(27,28,32,.45)}
.sty-plus,.sty-send{flex:none;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%}
.sty-plus{background:none;color:rgba(27,28,32,.55)}.sty-plus svg{width:22px;height:22px}
.sty-send{background:var(--dark);color:#fff}.sty-send svg{width:20px;height:20px}.sty-send:disabled{opacity:.45}
/* foi (sheet) in acelasi stil */
.sty-page .spanel{background:rgba(246,248,251,.97);border-radius:26px 26px 0 0}
.sty-sheet-title{padding:12px 0 8px}.sty-sheet-title h2{font-size:20px;font-weight:600;letter-spacing:-.01em}.sty-sheet-title p{margin-top:4px;color:var(--mut);font-size:14px}
.sty-options,.sty-list,.sty-memory{display:flex;flex-direction:column;margin-top:10px;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.93);border:0}
.sty-options button{padding:14px 16px;text-align:left;border:0;border-bottom:1px solid var(--sep);background:none}.sty-options button:last-child{border:0}
.sty-options b,.sty-options small{display:block}.sty-options b{font-weight:600}.sty-options small{margin-top:2px;color:var(--mut);font-size:13px}
.sty-search{width:100%;margin:8px 0 12px;padding:12px 16px;border:1px solid var(--sep);border-radius:999px;background:rgba(255,255,255,.9);font:400 15px Inter,system-ui}
.sty-list button,.sty-memory>div{min-height:58px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;border-bottom:1px solid var(--sep);background:none}
.sty-list button:last-child,.sty-memory>div:last-child{border:0}.sty-list b,.sty-list small,.sty-memory small,.sty-memory b{display:block}.sty-list b,.sty-memory b{font-weight:500}
.sty-list small,.sty-memory small{color:var(--mut);font-size:12px}.sty-memory span{flex:1}.sty-memory button,.sty-memory a{border:0;background:none;color:#2f6fb5;font-size:13px;font-weight:600}
.sty-new{width:100%;height:50px;border:0;border-radius:999px;background:var(--dark);color:#fff;font:500 15px Inter,system-ui}
.sty-delete-all{width:100%;margin-top:14px;padding:12px;border:0;background:none;color:#d93025;font-weight:500}
.sty-save{display:flex;flex-direction:column;gap:10px;margin-top:8px}.sty-save label{font-size:13px;color:var(--mut)}
.sty-save input[type=text],.sty-save input:not([type]){width:100%;margin-top:5px;padding:12px 14px;border:1px solid var(--sep);border-radius:12px;background:rgba(255,255,255,.9);font:400 15px Inter,system-ui}
.sty-seg{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:999px;background:rgba(27,28,32,.06)}.sty-seg label{padding:10px;text-align:center;color:var(--ink);font-weight:500;border-radius:999px}
.sty-seg label:has(input:checked){background:var(--dark);color:#fff}.sty-seg input{position:absolute;opacity:0}
.sty-page .toast{background:var(--dark);color:#fff;border-radius:999px}
.sty-back{position:fixed;left:12px;top:8px;z-index:50;color:transparent;width:1px;height:1px;overflow:hidden}
@media(min-width:700px){.sty-page{box-shadow:0 0 40px rgba(0,0,0,.18)}}
/* v24: integrare in platforma - bara de jos a magazinului, inapoi, meniu */
a.sty-icon{color:var(--ink)}.sty-icon svg{stroke-width:2}
a.sty-product{color:inherit;text-decoration:none}a.sty-product:active{transform:scale(.99)}
.sty-page.withnav .sty-compose{padding-bottom:12px}

.sty-solution{width:100%;padding:12px 0;border-top:1px solid rgba(0,0,0,.08)}
.sty-solution .sty-actions{width:100%;padding:0}
/* Scroll content keeps its intrinsic height; generated cards must not shrink under later messages. */
.sty-chat > *{flex-shrink:0}
