/* Artino (آرتینو) — LogoArt's art-focused AI space. v1 (2026-10-19)
   Pastel glass, soft lavender + blush, deep ink buttons — after the Artino mockups.
   Everything is scoped under .ar so the rest of the site is never touched. */

html.logoart-app-mode main > #tools.artino-page{background:#f2f3f7!important;padding:0!important;overflow:hidden!important}

.ar{
  --bg:#f2f3f7;--panel:#fff;--panel-2:#f8f8fb;--ink:#141a26;--ink-2:#3b4254;--muted:#8a90a0;--line:#eceef3;--line-2:#f3f4f8;
  --dark:#1b2230;--violet:#8b7cf6;--violet-2:#b18cf7;--lav:#eeebfc;--lav-2:#f6f4fe;--blush:#fde8ee;--pink:#e5528a;
  --r-xl:24px;--r-lg:18px;--r-md:14px;--r-sm:10px;
  --sh-1:0 1px 2px rgba(24,28,52,.04),0 10px 30px rgba(24,28,52,.05);
  --sh-2:0 2px 6px rgba(24,28,52,.06),0 24px 60px rgba(24,28,52,.12);
  --ease:cubic-bezier(.2,.8,.2,1);
  position:relative;box-sizing:border-box;height:100%;min-height:100%;
  display:grid;grid-template-columns:232px minmax(0,1fr) 292px;gap:14px;padding:14px;
  font-family:"Vazirmatn",Tahoma,sans-serif;font-size:15px;line-height:1.8;color:var(--ink);
  background:
    radial-gradient(900px 420px at 12% 108%,rgba(253,214,224,.75),transparent 60%),
    radial-gradient(700px 380px at 92% 112%,rgba(232,224,253,.7),transparent 62%),
    var(--bg);
  -webkit-font-smoothing:antialiased;isolation:isolate;
}
.ar *,.ar *::before,.ar *::after{box-sizing:border-box}
:where(.ar) button,:where(.ar) input,:where(.ar) textarea,:where(.ar) select{font:inherit;color:inherit;letter-spacing:0}
:where(.ar) button{cursor:pointer;background:none;border:0;padding:0;margin:0}
:where(.ar) a{color:inherit;text-decoration:none}
.ar svg[viewBox="0 0 24 24"]{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ar [hidden]{display:none!important}
.ar :focus-visible{outline:2.5px solid var(--violet);outline-offset:2px;border-radius:10px}
.ar .ar-grow{flex:1 1 auto}
.ar .ar-muted{color:var(--muted);font-size:14px}

/* ---------- grid per view ---------- */
.ar[data-av="studio"],.ar[data-av="library"],.ar[data-av="settings"],.ar[data-av="kit"],.ar[data-av="auth"]{grid-template-columns:232px minmax(0,1fr)}
.ar[data-av="studio"] .ar-side,.ar[data-av="library"] .ar-side,.ar[data-av="settings"] .ar-side,.ar[data-av="kit"] .ar-side,.ar[data-av="auth"] .ar-side{display:none}
.ar-main{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}
.ar-view{display:none;min-height:0;flex:1 1 auto}
.ar[data-av="home"] .ar-view[data-view="home"],.ar[data-av="chat"] .ar-view[data-view="chat"],.ar[data-av="studio"] .ar-view[data-view="studio"],
.ar[data-av="library"] .ar-view[data-view="library"],.ar[data-av="settings"] .ar-view[data-view="settings"],.ar[data-av="kit"] .ar-view[data-view="kit"],
.ar[data-av="auth"] .ar-view[data-view="auth"]{display:flex}
.ar.ar-swap .ar-view{animation:arIn .45s var(--ease) both}
@keyframes arIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ar[data-booting] .ar-main,.ar[data-booting] .ar-side{opacity:0}
.ar .ar-main,.ar .ar-side{transition:opacity .3s ease}

/* ---------- rail (right) ---------- */
.ar-rail{min-height:0;display:flex;flex-direction:column;gap:6px;padding:18px 14px 14px;background:rgba(255,255,255,.82);border-radius:var(--r-xl);box-shadow:var(--sh-1);overflow:auto;scrollbar-width:none}
.ar-rail::-webkit-scrollbar{display:none}
.ar-brand{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:2px 8px 16px}
.ar-brand img{width:46px;height:46px;object-fit:contain;animation:arBob 6s ease-in-out infinite}
.ar-brand-text{display:flex;flex-direction:column;line-height:1.05}
.ar-brand-text b{font-size:23px;font-weight:900;letter-spacing:-.2px}
.ar-brand-text small{font-size:11.5px;color:var(--ink-2);font-weight:500;margin-top:3px}
.ar-nav{display:flex;flex-direction:column;gap:3px}
.ar-nav-item{display:flex;align-items:center;justify-content:space-between;gap:10px;height:46px;padding:0 14px;border-radius:14px;color:var(--ink-2);font-size:15.5px;font-weight:600;transition:background .2s,color .2s,transform .2s var(--ease)}
.ar-nav-item svg{width:21px;height:21px;color:#5b6274}
.ar-nav-item:hover{background:var(--panel-2);color:var(--ink)}
.ar-nav-item.is-active{background:#f1f1f6;color:var(--ink);font-weight:800}
.ar-nav-item.is-active svg{color:var(--ink);fill:var(--ink);stroke:var(--ink)}
.ar-nav-item.is-active svg path[d^="M12 3.2"]{fill:var(--ink)}
.ar-nav-group{margin-top:12px}
.ar-nav-head{display:flex;align-items:center;justify-content:space-between;width:100%;height:38px;padding:0 14px;font-size:14.5px;font-weight:800;color:var(--ink)}
.ar-nav-head svg{width:18px;height:18px;transition:transform .25s var(--ease)}
.ar-nav-group[data-open="0"] .ar-nav-head svg{transform:rotate(180deg)}
.ar-nav-group-body{display:flex;flex-direction:column}
.ar-nav-group[data-open="0"] .ar-nav-group-body{display:none}
.ar-nav-sub{height:40px;font-size:14.5px;font-weight:500}
.ar-nav-sub svg{width:19px;height:19px}

.ar-me{margin-top:auto;padding:12px;border-radius:20px;background:linear-gradient(160deg,#c9cfdc,#b9c0cf);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.ar-me-row{display:flex;align-items:center;gap:10px;width:100%;text-align:right;padding:2px 2px 10px}
.ar-avatar{--h:262;position:relative;flex:0 0 auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-weight:800;font-size:17px;color:#fff;background:linear-gradient(145deg,hsl(var(--h) 80% 72%),hsl(calc(var(--h) + 40) 75% 60%));box-shadow:0 0 0 2px rgba(255,255,255,.75)}
.ar-avatar img{width:100%;height:100%;object-fit:cover}
.ar[data-auth="user"] .ar-avatar::after{content:"";position:absolute;bottom:1px;left:1px;width:10px;height:10px;border-radius:50%;background:#2fd17c;box-shadow:0 0 0 2px #c3c9d6}
.ar-me-text{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.ar-me-text b{font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-me-text small{font-size:12.5px;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.ar-me-cta{display:flex;align-items:center;gap:9px;height:44px;padding:0 6px 0 12px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.55);font-size:13.5px;font-weight:700;white-space:nowrap;transition:background .2s}
.ar-me-cta:hover{background:rgba(255,255,255,.3)}
.ar-me-cta-ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:#fff}
.ar-me-cta-ic svg{width:17px;height:17px;fill:#fff;stroke:#fff}

/* ---------- side panel (left) ---------- */
.ar-side{min-height:0;display:flex;flex-direction:column;gap:6px;padding:18px 14px 14px;background:rgba(255,255,255,.82);border-radius:var(--r-xl);box-shadow:var(--sh-1);overflow:hidden}
.ar-side-sec{display:flex;flex-direction:column;min-height:0}
.ar-side-sec:first-child{flex:0 0 auto}
.ar[data-av="home"] .ar-side-sec:first-child{display:none}
.ar[data-av="home"] .ar-history{margin-top:0}
.ar-history{flex:1 1 auto;margin-top:10px}
.ar-side-head{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 4px 8px;font-size:16px}
.ar-side-head b{font-weight:800}
.ar-side-head>svg{width:18px;height:18px;transition:transform .25s var(--ease)}
.ar-side-sec[data-open="0"] .ar-side-head>svg{transform:rotate(180deg)}
.ar-side-sec[data-open="0"] .ar-side-body{display:none}
.ar-modes{display:flex;flex-direction:column;gap:6px;max-height:42vh;overflow:auto;scrollbar-width:thin;padding:2px}
.ar-mode{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:16px;background:#fff;border:1px solid var(--line);text-align:right;transition:border-color .2s,box-shadow .2s,transform .2s var(--ease)}
.ar-mode:hover{border-color:#dcd7f7;box-shadow:0 6px 18px rgba(80,60,180,.08);transform:translateY(-1px)}
.ar-mode.is-on{border-color:var(--violet);box-shadow:0 0 0 3px rgba(139,124,246,.14)}
.ar-mode-ic{width:40px;height:40px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:var(--tint);color:var(--tone)}
.ar-mode-ic svg{width:20px;height:20px}
.ar-mode-tx{display:flex;flex-direction:column;line-height:1.45;min-width:0}
.ar-mode-tx b{font-size:14.5px;font-weight:700}
.ar-mode-tx small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-violet{--tint:#efeafe;--tone:#7a5af5}.c-pink{--tint:#fde7ef;--tone:#e04e7a}.c-amber{--tint:#fff1dc;--tone:#d27f00}.c-rose{--tint:#ffe9e3;--tone:#e5603c}
.c-blue{--tint:#e6eeff;--tone:#3b6ef5}.c-teal{--tint:#e0f6f0;--tone:#11977c}.c-indigo{--tint:#e9e9fd;--tone:#5552d9}.c-sky{--tint:#e2f3fd;--tone:#1d8fd1}
.ar-search{display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;margin-bottom:8px;border-radius:999px;background:#fff;border:1px solid var(--line)}
.ar-search svg{width:18px;height:18px;color:var(--muted)}
.ar-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px}
.ar-convs{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:2px;margin:0 -6px;padding:0 6px;scrollbar-width:thin}
.ar-conv{display:flex;align-items:flex-start;gap:10px;width:100%;padding:10px 8px;border-radius:14px;text-align:right;transition:background .2s}
.ar-conv:hover{background:var(--panel-2)}
.ar-conv.is-on{background:var(--lav-2)}
.ar-conv-ic{width:34px;height:34px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:#f1f2f6;color:#4f5668}
.ar-conv-ic svg{width:17px;height:17px}
.ar-conv-tx{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.5}
.ar-conv-tx b{font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-conv-tx small{font-size:12.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.ar-conv-tx i{font-style:normal;font-size:12px;color:#a3a8b5;margin-top:2px}
.ar-conv-thumb{display:block;width:100%;height:92px;object-fit:cover;border-radius:12px;margin-top:6px}
.ar-side-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:26px 10px;color:var(--muted);font-size:13.5px}
.ar-side-empty svg{width:30px;height:30px;color:#c3c6d3;margin-bottom:4px}
.ar-side-empty b{color:var(--ink);font-size:14.5px}
.ar-side-empty .ar-btn{margin-top:10px}
.ar-new-chat{margin-top:8px;flex:0 0 auto}
.ar-side-backdrop{display:none}
.ar-side-toggle{display:none}

/* ---------- buttons & inputs ---------- */
.ar-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 24px;border-radius:999px;font-size:15px;font-weight:700;transition:transform .2s var(--ease),box-shadow .2s,background .2s,opacity .2s;white-space:nowrap}
.ar-btn:active{transform:scale(.98)}
.ar-btn:disabled{opacity:.6;cursor:default}
.ar-btn-dark{background:var(--dark);color:#fff;box-shadow:0 8px 22px rgba(20,26,40,.18)}
.ar-btn-dark:hover{box-shadow:0 12px 28px rgba(20,26,40,.26)}
.ar-btn-dark svg{width:19px;height:19px}
.ar-btn-ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.ar-btn-ghost:hover{border-color:#d9dbe4}
.ar-btn-block{width:100%}
.ar-btn-google{background:#fff;border:1px solid #e3e5ec;color:var(--ink-2);font-weight:600;flex-direction:row-reverse}
.ar-btn-google:hover{border-color:#cfd2dc;box-shadow:0 6px 16px rgba(20,26,40,.06)}
.ar-g{width:22px;height:22px}
.ar-btn.is-loading{pointer-events:none;opacity:.8}
.ar-btn.is-loading>span::after{content:"";display:inline-block;width:14px;height:14px;margin-inline-start:8px;vertical-align:-2px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:arSpin .8s linear infinite}
@keyframes arSpin{to{transform:rotate(360deg)}}
.ar-icon-btn{width:40px;height:40px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;color:#4c5366;transition:background .2s,color .2s}
.ar-icon-btn:hover{background:#f1f2f6;color:var(--ink)}
.ar-icon-btn.sm{width:32px;height:32px}
.ar-icon-btn.sm svg{width:17px;height:17px}
.ar-icon-btn.is-on{background:var(--blush);color:var(--pink)}
.ar-icon-btn.is-rec{background:#ffe3e3;color:#d92d2d;animation:arRec 1.2s ease-in-out infinite}
@keyframes arRec{50%{box-shadow:0 0 0 7px rgba(217,45,45,.12)}}
.ar-link{color:#3b6ef5;font-weight:600;font-size:inherit}
.ar-link:hover{text-decoration:underline}

/* ---------- HOME ---------- */
.ar-home{position:relative;flex-direction:column;align-items:center;justify-content:space-between;gap:20px;padding:clamp(18px,4vh,46px) clamp(18px,4vw,64px) 22px;background:rgba(255,255,255,.55);border-radius:var(--r-xl);overflow:auto}
.ar-home>*{flex-shrink:0}
.ar-home-center{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;max-width:820px;margin:auto 0}
.ar-hero-bird{position:relative;width:132px;height:132px;margin-bottom:6px}
.ar-hero-bird img{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;animation:arBob 6s ease-in-out infinite;filter:drop-shadow(0 18px 24px rgba(30,170,160,.18))}
.ar-hero-halo{position:absolute;inset:-26px;border-radius:50%;background:radial-gradient(circle,rgba(185,240,214,.55),rgba(214,205,253,.35) 45%,transparent 70%);animation:arHalo 6s ease-in-out infinite}
.ar-twinkle{position:absolute;z-index:3;width:12px;height:12px;background:conic-gradient(from 45deg,transparent 0 25%,#f4b6cb 0 50%,transparent 0 75%,#f4b6cb 0);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:0;animation:arTwinkle 4.5s ease-in-out infinite}
.ar-twinkle.t1{top:8px;left:-6px}.ar-twinkle.t2{top:-4px;right:6px;width:9px;height:9px;animation-delay:1.4s}.ar-twinkle.t3{bottom:16px;right:-10px;width:10px;height:10px;animation-delay:2.7s;background:#a99bf5}
@keyframes arBob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-1.5deg)}}
@keyframes arHalo{0%,100%{transform:scale(.94);opacity:.8}50%{transform:scale(1.04);opacity:1}}
@keyframes arTwinkle{0%,70%,100%{opacity:0;transform:scale(.4) rotate(0)}80%{opacity:1;transform:scale(1) rotate(45deg)}}
.ar-hello{margin:6px 0 4px;font-size:clamp(34px,4.6vw,58px);line-height:1.2;font-weight:900;letter-spacing:-.5px;color:var(--ink)}
.ar-hello-sub{margin:0 0 clamp(20px,4vh,36px);font-size:clamp(16px,1.6vw,20px);color:#7b8193;font-weight:500}
.ar-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;max-width:760px}
.ar-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:6px;padding:20px 20px 22px;min-height:178px;border-radius:22px;background:#fff;box-shadow:var(--sh-1);transition:transform .3s var(--ease),box-shadow .3s}
.ar-card:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.ar-card b{font-size:17px;font-weight:800;margin-top:auto}
.ar-card>span:last-child{font-size:14px;color:var(--muted);line-height:1.7}
.ar-card-art{position:absolute;top:16px;left:18px;width:50px;height:50px;transition:transform .5s var(--ease)}
.ar-card:hover .ar-card-art{transform:rotate(-8deg) scale(1.08)}
.art-star{background:radial-gradient(circle at 35% 30%,#ffd9a3,#ff9b7a 55%,#f472b6);clip-path:polygon(50% 2%,63% 35%,98% 38%,71% 60%,80% 95%,50% 76%,20% 95%,29% 60%,2% 38%,37% 35%);filter:drop-shadow(0 6px 10px rgba(255,140,120,.35))}
.art-pen{background:linear-gradient(135deg,#d9c8ff,#a993f5 50%,#ff9fb5);clip-path:polygon(78% 4%,96% 22%,40% 78%,14% 88%,22% 60%);filter:drop-shadow(0 6px 10px rgba(150,120,240,.35))}
.art-pen::after{content:"";position:absolute;left:12%;bottom:10%;width:16%;height:16%;background:#ffb547;border-radius:2px;transform:rotate(45deg)}
.art-palette{border-radius:50% 50% 46% 54%/56% 52% 48% 44%;background:
  radial-gradient(circle at 30% 34%,#ff7aa2 0 9%,transparent 10%),radial-gradient(circle at 52% 24%,#ffd166 0 9%,transparent 10%),radial-gradient(circle at 72% 36%,#7bd389 0 9%,transparent 10%),
  radial-gradient(circle at 68% 62%,#7aa7ff 0 9%,transparent 10%),radial-gradient(circle at 38% 70%,#fff 0 11%,transparent 12%),linear-gradient(135deg,#f6e7ff,#e2d4fb);
  box-shadow:0 8px 16px rgba(170,140,240,.3)}
.ar-suggest{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;max-width:840px;margin-top:12px}
.ar-suggest-chip{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid var(--line);font-size:13.5px;color:var(--ink-2);transition:background .2s,border-color .2s}
.ar-suggest-chip svg{width:16px;height:16px;color:var(--violet)}
.ar-suggest-chip:hover{background:#fff;border-color:#d8d3f6}

/* composer */
.ar-composer{width:100%;max-width:840px;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--sh-1);transition:border-color .2s,box-shadow .2s}
.ar-composer:focus-within{border-color:#d4cdf8;box-shadow:0 0 0 4px rgba(139,124,246,.1),var(--sh-1)}
.ar-composer textarea{display:block;width:100%;min-height:52px;max-height:180px;resize:none;border:0;outline:0;background:transparent;padding:16px 20px 6px;font-size:15.5px;line-height:1.75}
.ar-composer textarea::placeholder{color:#a3a8b6}
.ar-composer-bar{display:flex;align-items:center;gap:8px;padding:6px 10px 10px;flex-direction:row-reverse}
.ar-chip{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);font-size:13.5px;color:var(--ink-2);transition:background .2s,border-color .2s,color .2s}
.ar-chip svg{width:17px;height:17px}
.ar-chip:hover{background:var(--panel-2)}
.ar-chip.is-on{background:var(--blush);border-color:#f8c9d8;color:#c23a6c}
.ar-send{width:42px;height:42px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:#fff;transition:transform .2s var(--ease),opacity .2s}
.ar-send:hover{transform:scale(1.06)}
.ar-send svg{width:20px;height:20px;stroke-width:2}
.ar-send-violet{background:linear-gradient(135deg,var(--violet),var(--violet-2));box-shadow:0 8px 20px rgba(139,124,246,.35)}
.ar[data-busy] .ar-send{opacity:.5;pointer-events:none}

/* ---------- CHAT ---------- */
.ar-chat{flex-direction:column;background:rgba(255,255,255,.82);border-radius:var(--r-xl);box-shadow:var(--sh-1);overflow:hidden}
.ar-chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line-2)}
.ar-bot-ava{width:44px;height:44px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:var(--blush)}
.ar-bot-ava svg{width:22px;height:22px;stroke:none;fill:url(#arSparkGrad);fill:#ea4c89}
.ar-chat-title{display:flex;flex-direction:column;line-height:1.45;min-width:0}
.ar-chat-title b{font-size:16px;font-weight:800}
.ar-chat-title small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
.ar-menu-wrap{position:relative}
.ar-menu{position:absolute;top:46px;left:0;z-index:20;min-width:190px;padding:6px;border-radius:16px;background:#fff;box-shadow:var(--sh-2);display:flex;flex-direction:column}
.ar-menu button{height:40px;padding:0 12px;border-radius:10px;text-align:right;font-size:14px}
.ar-menu button:hover{background:var(--panel-2)}
.ar-menu .is-danger{color:#d23b3b}
.ar-thread{flex:1 1 auto;min-height:0;overflow:auto;padding:22px clamp(14px,3vw,34px) 10px;display:flex;flex-direction:column;gap:18px;scroll-behavior:auto;scrollbar-width:thin}
.ar-msg{display:flex;gap:12px;align-items:flex-start;max-width:min(760px,100%);animation:arMsg .4s var(--ease) both}
@keyframes arMsg{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ar-msg.is-user{align-self:flex-start}
.ar-msg.is-bot{align-self:flex-start;flex-direction:row}
.ar-msg-ava{width:40px;height:40px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#eef0ff;color:#6c63d9;font-weight:800;font-size:15px}
.ar-msg-ava img{width:100%;height:100%;object-fit:cover}
.ar-msg-ava.bot{background:var(--blush);color:#ea4c89}
.ar-msg-ava.bot svg{fill:#ea4c89;stroke:#ea4c89}
.ar-msg-col{min-width:0;display:flex;flex-direction:column;gap:4px}
.ar-msg time{font-size:11.5px;color:#a3a8b5;padding:0 6px}
.ar-bubble{padding:12px 18px;border-radius:20px;font-size:15px;line-height:1.95;word-wrap:break-word;overflow-wrap:anywhere}
.is-user .ar-bubble{background:var(--lav);color:#2b2f4a;border-top-right-radius:6px}
.is-bot .ar-bubble{background:#fff;border:1px solid var(--line);box-shadow:0 4px 16px rgba(24,28,52,.04);border-top-right-radius:6px}
.is-bot.is-error .ar-bubble{background:#fff6f6;border-color:#f6d5d5;color:#a33}
.ar-msg-tools{display:flex;align-items:center;gap:6px}
.ar-msg-tools button{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:999px;font-size:12.5px;color:var(--muted);transition:background .2s,color .2s}
.ar-msg-tools button svg{width:15px;height:15px}
.ar-msg-tools button:hover{background:#f1f2f6;color:var(--ink)}
.ar-md-body>*:first-child{margin-top:0}.ar-md-body>*:last-child{margin-bottom:0}
.ar-md-body p{margin:0 0 8px}
.ar-md-body h4{margin:12px 0 6px;font-size:15.5px;font-weight:800}
.ar-md-body ul,.ar-md-body ol{margin:4px 0 10px;padding:12px 16px 12px 12px;padding-inline-start:30px;background:var(--panel-2);border-radius:14px}
.ar-md-body li{margin:3px 0}
.ar-md-body li::marker{color:var(--violet);font-weight:800}
.ar-md-body code{padding:1px 6px;border-radius:6px;background:#f1f0fb;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.88em;direction:ltr;unicode-bidi:isolate}
.ar-md-body a{color:#3b6ef5;text-decoration:underline;text-underline-offset:3px}
.ar-reveal{animation:arRevealIn .35s ease both}
@keyframes arRevealIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ar-code{margin:8px 0;border-radius:14px;overflow:hidden;border:1px solid #e6e3fa;background:#faf9ff}
.ar-code pre{margin:0;padding:12px 14px;white-space:pre-wrap;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px;line-height:1.7;color:#2b2f4a;text-align:left}
.ar-code pre code{background:none;padding:0;font-size:inherit}
.ar-code-bar{display:flex;gap:6px;flex-wrap:wrap;padding:6px 8px;background:#f2f0fd;border-top:1px solid #e6e3fa}
.ar-code-bar button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:600;color:#5b4bd6;background:#fff}
.ar-code-bar button svg{width:15px;height:15px}
.ar-hex{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 8px 0 10px;margin:0 2px;border-radius:999px;background:#fff;border:1px solid var(--line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;vertical-align:middle;transition:transform .2s}
.ar-hex i{width:15px;height:15px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.ar-hex:hover{transform:translateY(-1px)}
.ar-typing{display:inline-flex;gap:5px;padding:16px 18px}
.ar-typing i{width:8px;height:8px;border-radius:50%;background:#b9b1f3;animation:arDot 1.2s ease-in-out infinite}
.ar-typing i:nth-child(2){animation-delay:.15s}.ar-typing i:nth-child(3){animation-delay:.3s}
@keyframes arDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}
.ar-img-pending{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 34px;text-align:center}
.ar-img-pending small{color:var(--muted);font-size:12.5px}
.ar-chat-img{margin:0 0 8px;max-width:420px}
.ar-chat-img img{display:block;width:100%;border-radius:16px;cursor:zoom-in;background:var(--panel-2)}
.ar-chat-img figcaption{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ar-welcome{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;max-width:520px;padding:20px}
.ar-welcome-ic{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:var(--tint);color:var(--tone);margin-bottom:6px;animation:arBob 6s ease-in-out infinite}
.ar-welcome-ic svg{width:30px;height:30px}
.ar-welcome>b{font-size:20px;font-weight:800}
.ar-welcome>span{color:var(--muted);font-size:14px}
.ar-welcome-list{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:14px}
.ar-welcome-list button{padding:12px 16px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:14px;text-align:right;transition:border-color .2s,transform .2s var(--ease)}
.ar-welcome-list button:hover{border-color:#d4cdf8;transform:translateX(-3px)}
.ar-composer-chat{margin:8px clamp(12px,2.4vw,26px) 16px;width:auto;max-width:none;border-radius:999px;padding:6px 6px 6px 8px}
.ar-composer-chat:has(.ar-mode-tag:not([hidden])){border-radius:24px}
.ar-composer-row{display:flex;align-items:center;gap:2px;flex-direction:row}
.ar-composer-chat textarea{padding:10px 14px;min-height:44px}
.ar-mode-tag{display:inline-flex;align-items:center;gap:6px;height:30px;margin:4px 10px 2px;padding:0 6px 0 12px;border-radius:999px;background:var(--tint);color:var(--tone);font-size:12.5px;font-weight:700}
.ar-mode-tag svg{width:15px;height:15px}
.ar-mode-tag button{width:22px;height:22px;border-radius:50%;display:grid;place-items:center}
.ar-mode-tag button:hover{background:rgba(0,0,0,.06)}
.ar-mode-tag button svg{width:13px;height:13px}

/* mode popover */
.ar-pop{position:absolute;z-index:60;padding:10px;border-radius:20px;background:#fff;box-shadow:var(--sh-2);overflow:auto;display:flex;flex-direction:column;gap:6px;animation:arPop .22s var(--ease) both}
@keyframes arPop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.ar-pop-title{font-size:12.5px;font-weight:800;color:var(--muted);padding:6px 6px 2px}
.ar-pop .ar-mode{padding:6px 8px;border-radius:14px}
.ar-pop .ar-mode-ic{width:34px;height:34px;border-radius:11px}
.ar-pop-styles{display:flex;flex-wrap:wrap;gap:6px}
.ar-pop-styles button,.ar-pop-ratios button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--line);font-size:12.5px}
.ar-pop-styles button i{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.ar-pop-styles .is-on,.ar-pop-ratios .is-on{border-color:var(--violet);background:var(--lav-2);color:#5b4bd6;font-weight:700}
.ar-pop-ratios{display:flex;gap:6px;flex-wrap:wrap}

/* ---------- STUDIO ---------- */
.ar-studio,.ar-library,.ar-settings,.ar-kit{flex-direction:column;min-height:0;overflow:auto;border-radius:var(--r-xl);scrollbar-width:thin}
.ar-studio-grid{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:14px;min-height:100%}
.ar-studio-panel{display:flex;flex-direction:column;gap:14px;padding:22px;background:rgba(255,255,255,.88);border-radius:var(--r-xl);box-shadow:var(--sh-1)}
.ar-view-head h2{margin:0;font-size:24px;font-weight:900;letter-spacing:-.3px}
.ar-view-head p{margin:2px 0 0;color:var(--muted);font-size:14.5px}
.ar-view-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ar-field{display:flex;flex-direction:column;gap:8px}
.ar-field-label{font-size:13.5px;font-weight:800;color:var(--ink-2)}
.ar-prompt-box{position:relative;padding:12px;border-radius:20px;background:#fff;border:1px solid var(--line);transition:border-color .2s,box-shadow .2s}
.ar-prompt-box:focus-within{border-color:#d4cdf8;box-shadow:0 0 0 4px rgba(139,124,246,.1)}
.ar-prompt-box textarea{width:100%;min-height:120px;max-height:260px;resize:none;border:0;outline:0;background:transparent;font-size:15.5px;line-height:1.85;padding:2px 4px}
.ar-prompt-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ar-mini{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;background:var(--lav-2);color:#5b4bd6;font-size:13px;font-weight:700;transition:background .2s}
.ar-mini:hover{background:var(--lav)}
.ar-mini svg{width:16px;height:16px}
.ar-mini.is-loading svg{animation:arSpin 1s linear infinite}
.ar-count{margin-inline-start:auto;font-size:12px;color:#a3a8b5}
.ar-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ar-style{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px 10px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--ink-2);transition:border-color .2s,transform .2s var(--ease),box-shadow .2s}
.ar-style i{display:block;width:100%;height:46px;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);transition:transform .35s var(--ease)}
.ar-style:hover{transform:translateY(-2px)}
.ar-style:hover i{transform:scale(1.03)}
.ar-style.is-on{border-color:var(--violet);box-shadow:0 0 0 3px rgba(139,124,246,.16);color:#4b3dc4}
.ar-styles.ar-pulse{animation:arPulse 1.4s ease}
@keyframes arPulse{30%{box-shadow:0 0 0 8px rgba(139,124,246,.18);border-radius:16px}}
.ar-ratios{display:flex;gap:8px;flex-wrap:wrap}
.ar-ratio{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:62px;height:62px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--ink-2);transition:border-color .2s}
.ar-ratio i{display:block;border:2px solid currentColor;border-radius:4px;opacity:.7}
.ar-ratio.is-on{border-color:var(--violet);color:#4b3dc4;background:var(--lav-2)}
.ar-switch{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2);cursor:pointer}
.ar-switch input{position:absolute;opacity:0;pointer-events:none}
.ar-switch i{position:relative;width:42px;height:24px;flex:0 0 auto;border-radius:99px;background:#dfe1e8;transition:background .2s}
.ar-switch i::after{content:"";position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .25s var(--ease)}
.ar-switch input:checked+i{background:var(--violet)}
.ar-switch input:checked+i::after{transform:translateX(-18px)}
.ar-switch input:focus-visible+i{outline:2.5px solid var(--violet);outline-offset:2px}
.ar-generate{height:56px;font-size:17px;margin-top:2px}
.ar-generate svg{width:21px;height:21px}
.ar-quota{margin:-4px 0 0;text-align:center;font-size:13px;color:var(--muted)}
.ar-canvas-wrap{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;background:rgba(255,255,255,.6);border-radius:var(--r-xl);box-shadow:var(--sh-1)}
.ar-canvas{--ratio:1 / 1;position:relative;display:grid;place-items:center;flex:1 1 auto;min-height:340px;border-radius:22px;background:
  linear-gradient(45deg,rgba(0,0,0,.025) 25%,transparent 25% 75%,rgba(0,0,0,.025) 75%) 0 0/24px 24px,
  linear-gradient(45deg,rgba(0,0,0,.025) 25%,transparent 25% 75%,rgba(0,0,0,.025) 75%) 12px 12px/24px 24px,#fbfbfd;
  border:1.5px dashed #dddfe8;overflow:hidden}
.ar-canvas>*{grid-area:1/1;display:none}
.ar-canvas[data-state="empty"] .ar-canvas-empty,.ar-canvas[data-state="busy"] .ar-canvas-busy,.ar-canvas[data-state="done"] .ar-canvas-result{display:flex}
.ar-canvas[data-state="done"]{border-style:solid;border-color:transparent;background:#fff}
.ar-canvas-empty,.ar-canvas-busy{flex-direction:column;align-items:center;gap:6px;text-align:center;color:var(--muted);font-size:14px;padding:30px}
.ar-canvas-empty b,.ar-canvas-busy b{color:var(--ink);font-size:17px}
.ar-canvas-swatch{width:88px;height:88px;border-radius:28px;margin-bottom:8px;background:conic-gradient(from 210deg,#ffc8d8,#d9cdfb,#b9eadc,#fde3b5,#ffc8d8);filter:blur(.3px);animation:arSwatch 9s linear infinite;box-shadow:0 16px 30px rgba(170,150,240,.25)}
@keyframes arSwatch{to{filter:hue-rotate(360deg)}}
.ar-paint{position:relative;width:120px;height:120px;margin-bottom:12px}
.ar-paint i{position:absolute;inset:0;border-radius:42% 58% 63% 37%/41% 44% 56% 59%;mix-blend-mode:multiply;opacity:.8;animation:arBlob 6s ease-in-out infinite}
.ar-paint i:nth-child(1){background:#ffb3c9;animation-duration:5.5s}
.ar-paint i:nth-child(2){background:#b8a9f7;animation-duration:7s;animation-direction:reverse}
.ar-paint i:nth-child(3){background:#9fe3cf;animation-duration:6.2s;animation-delay:-2s}
.ar-paint.sm{width:64px;height:64px;margin-bottom:6px}
@keyframes arBlob{0%,100%{border-radius:42% 58% 63% 37%/41% 44% 56% 59%;transform:rotate(0) scale(.9)}33%{border-radius:63% 37% 41% 59%/58% 63% 37% 42%;transform:rotate(120deg) scale(1)}66%{border-radius:37% 63% 56% 44%/44% 37% 63% 56%;transform:rotate(240deg) scale(.86)}}
.ar-canvas-result{flex-direction:column;margin:0;width:100%;height:100%;padding:14px;gap:10px;align-items:center;justify-content:center}
.ar-canvas-result img{display:block;max-width:100%;max-height:min(62vh,640px);aspect-ratio:var(--ratio);object-fit:contain;border-radius:18px;box-shadow:0 20px 50px rgba(24,28,52,.16);animation:arDevelop 1.1s var(--ease) both;cursor:zoom-in}
@keyframes arDevelop{from{opacity:0;filter:blur(18px) saturate(.4);transform:scale(.97)}to{opacity:1;filter:none;transform:none}}
.ar-canvas-result figcaption{max-width:640px;text-align:center;font-size:13.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-result-actions,.ar-lb-acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ar-act{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--ink-2);transition:border-color .2s,transform .2s var(--ease),color .2s}
.ar-act svg{width:17px;height:17px}
.ar-act:hover{border-color:#d4cdf8;color:#4b3dc4;transform:translateY(-1px)}
.ar-act.is-danger:hover{border-color:#f3c9c9;color:#c33}
.ar-recent{display:flex;flex-direction:column;gap:8px}
.ar-recent-head{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.ar-recent-head a{color:#5b4bd6;font-weight:700;font-size:13.5px}
.ar-recent-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;min-height:68px;align-items:center}
.ar-thumb{flex:0 0 auto;width:68px;height:68px;border-radius:14px;overflow:hidden;background:var(--panel-2);transition:transform .2s var(--ease)}
.ar-thumb:hover{transform:translateY(-2px) scale(1.03)}
.ar-thumb img{width:100%;height:100%;object-fit:cover}

/* ---------- LIBRARY ---------- */
.ar-library{gap:18px;padding:24px;background:rgba(255,255,255,.7);box-shadow:var(--sh-1)}
.ar-library .ar-btn svg{width:18px;height:18px}
.ar-gallery{columns:4 220px;column-gap:12px}
.ar-tile{position:relative;display:block;width:100%;margin:0 0 12px;break-inside:avoid;border-radius:18px;overflow:hidden;background:var(--panel-2);aspect-ratio:var(--ar);box-shadow:0 4px 14px rgba(24,28,52,.06)}
.ar-tile img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.ar-tile:hover img{transform:scale(1.04)}
.ar-tile-cap{position:absolute;inset:auto 0 0;padding:28px 12px 10px;font-size:12.5px;color:#fff;text-align:right;background:linear-gradient(transparent,rgba(10,12,24,.66));opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s var(--ease);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-tile:hover .ar-tile-cap,.ar-tile:focus-visible .ar-tile-cap{opacity:1;transform:none}
.ar-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:60px 20px;color:var(--muted)}
.ar-empty b{color:var(--ink);font-size:18px}
.ar-empty .ar-btn{margin-top:12px}
.ar-more{align-self:center}

/* lightbox */
.ar-lightbox{position:absolute;inset:0;z-index:80;display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .22s ease}
.ar-lightbox.is-on{opacity:1}
.ar-lb-backdrop{position:absolute;inset:0;background:rgba(242,243,247,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:inherit}
.ar-lb-card{position:relative;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px;width:min(1040px,100%);max-height:100%;padding:16px;border-radius:26px;background:#fff;box-shadow:var(--sh-2);overflow:auto;transform:translateY(10px) scale(.98);transition:transform .3s var(--ease)}
.ar-lightbox.is-on .ar-lb-card{transform:none}
.ar-lb-img{display:grid;place-items:center;background:var(--panel-2);border-radius:18px;overflow:hidden;min-height:260px}
.ar-lb-img img{display:block;max-width:100%;max-height:72vh;object-fit:contain}
.ar-lb-info{display:flex;flex-direction:column;gap:8px;padding:8px 4px}
.ar-lb-info>b{font-size:17px;line-height:1.7}
.ar-lb-info>span{color:var(--muted);font-size:13.5px}
.ar-lb-info details{font-size:13px;color:var(--ink-2);background:var(--panel-2);border-radius:12px;padding:8px 12px}
.ar-lb-info details summary{cursor:pointer;font-weight:700}
.ar-lb-info details p{margin:6px 0 0;text-align:left;line-height:1.6}
.ar-lb-acts{justify-content:flex-start;margin-top:auto}
.ar-lb-close{position:absolute;top:12px;left:12px;z-index:2;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.ar-lb-text{display:block;width:min(560px,100%);padding:28px}
.ar-lb-text h3{margin:0 0 10px;font-size:19px}
.ar-lb-text ul{margin:0 0 18px;padding-inline-start:20px;line-height:2;color:var(--ink-2);font-size:14.5px}

/* ---------- SETTINGS ---------- */
.ar-settings{gap:18px;padding:24px;background:rgba(255,255,255,.7);box-shadow:var(--sh-1)}
.ar-set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ar-panel{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:22px;background:#fff;border:1px solid var(--line)}
.ar-panel h3{margin:0;font-size:16px;font-weight:800}
.ar-panel p{margin:0;color:var(--muted);font-size:14px;line-height:1.9}
.ar-panel .ar-btn{align-self:flex-start}
.ar-panel-cta{background:linear-gradient(150deg,#fff,#f5f2ff 60%,#fdeef3)}
.ar-panel-cta .ar-btn{align-self:stretch}
.ar-usage{display:flex;flex-direction:column;gap:6px}
.ar-usage>div{display:flex;justify-content:space-between;font-size:14px}
.ar-usage>div span{color:var(--muted)}
.ar-usage>i{display:block;height:8px;border-radius:99px;background:#eef0f5;overflow:hidden}
.ar-usage>i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--violet-2),var(--violet))}
.ar-form-msg{min-height:20px;font-size:13.5px;font-weight:600;color:var(--muted)}
.ar-form-msg[data-kind="err"]{color:#cf3a3a}
.ar-form-msg[data-kind="ok"]{color:#14935d}

/* inputs (auth & settings) */
.ar-input{position:relative;display:flex;flex-direction:column;gap:2px;padding:9px 16px 7px;border-radius:16px;background:#fff;border:1px solid #e6e8ef;transition:border-color .2s,box-shadow .2s}
.ar-input:focus-within{border-color:#c9c0f7;box-shadow:0 0 0 4px rgba(139,124,246,.12)}
.ar-input label{font-size:12.5px;font-weight:700;color:var(--ink-2)}
.ar-input input{width:100%;border:0;outline:0;background:transparent;font-size:15px;padding:2px 0;min-height:28px}
.ar-input input::placeholder{color:#b3b7c3}
.ar-input input[dir="ltr"]{text-align:left}
.ar-input input[dir="ltr"]:placeholder-shown{text-align:left}
.ar-input-ic{padding-inline-end:46px}
.ar-input-ic>svg{position:absolute;top:50%;left:16px;margin-top:-10px;color:#7d8394}
.ar-input-ic .ar-eye{position:absolute;top:50%;left:46px;margin-top:-15px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#a3a8b5}
.ar-input-ic .ar-eye svg{width:17px;height:17px}
.ar-input-ic .ar-eye.is-on{color:var(--violet)}
.ar-input-ic:has(.ar-eye) input{padding-left:36px}
.ar-input.is-error{border-color:#f0b3b3;box-shadow:0 0 0 4px rgba(230,80,80,.08);animation:arShake .35s ease}
@keyframes arShake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.ar-input.is-static span{font-size:15px;padding:2px 0;text-align:left;color:var(--ink-2)}
.ar-input-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ar-check{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2);cursor:pointer}
.ar-check input{position:absolute;opacity:0;pointer-events:none}
.ar-check>i{width:20px;height:20px;flex:0 0 auto;border-radius:6px;border:1.5px solid #cdd0da;background:#fff;display:grid;place-items:center;transition:background .2s,border-color .2s}
.ar-check input:checked+i{background:var(--dark);border-color:var(--dark)}
.ar-check input:checked+i::after{content:"";width:5px;height:10px;margin-top:-2px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ar-check input:focus-visible+i{outline:2.5px solid var(--violet);outline-offset:2px}
.ar-check.is-error>i{border-color:#e06a6a}
.ar-strength{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:-4px}
.ar-strength i{height:4px;border-radius:9px;background:#eceef3;transition:background .3s}
.ar-strength[data-s="1"] i:nth-child(-n+1){background:#f08a8a}
.ar-strength[data-s="2"] i:nth-child(-n+2){background:#f3b45f}
.ar-strength[data-s="3"] i:nth-child(-n+3){background:#8bc88a}
.ar-strength[data-s="4"] i{background:#2fb980}

/* ---------- AUTH ---------- */
.ar-auth{align-items:center;justify-content:center;padding:10px;overflow:auto}
.ar-auth-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);width:min(860px,100%);min-height:min(560px,100%);border-radius:28px;background:#fff;box-shadow:var(--sh-2);overflow:hidden;animation:arIn .5s var(--ease) both}
.ar-auth-form{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:clamp(22px,4vw,44px) clamp(22px,4.4vw,52px)}
.ar-auth-logo{align-self:center;width:64px;height:64px;object-fit:contain;margin-bottom:4px;animation:arBob 6s ease-in-out infinite}
.ar-auth-pane{display:flex;flex-direction:column;gap:12px}
.ar-auth-pane h2{margin:0;text-align:center;font-size:22px;font-weight:900}
.ar-auth-lead{margin:-6px 0 8px;text-align:center;color:var(--muted);font-size:14px}
.ar-auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13.5px}
.ar-auth-row .ar-link{color:var(--ink-2);font-weight:500}
.ar-auth-pane .ar-btn-dark{height:52px;font-size:16.5px;justify-content:center;position:relative}
.ar-auth-pane .ar-btn-dark>svg{position:absolute;left:22px}
.ar-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}
.ar-or::before,.ar-or::after{content:"";flex:1;height:1px;background:var(--line)}
.ar-auth-switch{margin:4px 0 0;text-align:center;font-size:14px;color:var(--muted)}
.ar-auth-pane [data-msg]{text-align:center;min-height:0}
.ar-auth-pane [data-msg]:empty{display:none}
.ar-auth-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;padding:30px 28px 26px;background:
  radial-gradient(260px 220px at 50% 34%,rgba(214,205,253,.55),transparent 70%),radial-gradient(200px 180px at 30% 60%,rgba(253,214,224,.6),transparent 70%),linear-gradient(180deg,#f6f6fa,#f1f1f6);border-right:1px solid var(--line-2)}
.ar-glass-scene{position:absolute;top:8%;left:50%;width:230px;height:230px;margin-left:-115px;opacity:0;transform:translateY(14px) scale(.96);transition:opacity .5s ease,transform .7s var(--ease);pointer-events:none}
.ar-glass-scene.is-on{opacity:1;transform:none}
.g-card{position:absolute;border-radius:26px;background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(255,255,255,.55));border:1px solid rgba(255,255,255,.9);box-shadow:0 24px 50px rgba(120,110,170,.18),inset 0 1px 0 #fff;backdrop-filter:blur(8px)}
.g-back{width:150px;height:150px;top:16px;left:30px;transform:rotate(-10deg);opacity:.75}
.g-photo{width:160px;height:150px;top:30px;left:46px;overflow:hidden;transform:rotate(-4deg);animation:arFloat 7s ease-in-out infinite}
.g-sun{position:absolute;top:22px;right:26px;width:18px;height:18px;border-radius:50%;background:#ff5a5a;box-shadow:0 4px 10px rgba(255,90,90,.4)}
.g-hill{position:absolute;bottom:-30px;border-radius:50%}
.g-hill.h1{left:-10px;width:120px;height:90px;background:linear-gradient(160deg,#a7e3cf,#74c7b0)}
.g-hill.h2{left:56px;width:130px;height:110px;bottom:-56px;background:linear-gradient(160deg,#c9b8fb,#a08af0)}
.g-chip{position:absolute;bottom:22px;right:4px;width:104px;height:66px;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 18px 34px rgba(120,110,170,.2);animation:arFloat 6s ease-in-out infinite reverse;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:0 14px 0 36px}
.g-pen{position:absolute;left:10px;top:18px;width:20px;height:30px;background:linear-gradient(180deg,#ffc069,#ff7aa2);clip-path:polygon(30% 0,70% 0,70% 70%,50% 100%,30% 70%);transform:rotate(-30deg)}
.g-line{display:block;height:6px;border-radius:9px;background:#c9c1f5}.g-line.s{width:60%;background:#e3defb}
.g-cube{position:absolute;bottom:52px;left:6px;width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,#fff,#e3defb);box-shadow:0 10px 20px rgba(120,110,170,.2);transform:rotate(18deg);animation:arFloat 5s ease-in-out infinite}
.g-profile{width:150px;height:150px;top:30px;left:40px;transform:rotate(-8deg);animation:arFloat 7s ease-in-out infinite;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.g-head{width:44px;height:44px;border-radius:50%;background:linear-gradient(160deg,#cdbcfb,#a48df2)}
.g-body{width:78px;height:40px;border-radius:40px 40px 14px 14px;background:linear-gradient(160deg,#d9cbfc,#b49ff5)}
.g-plus{position:absolute;bottom:46px;right:26px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:300;background:linear-gradient(140deg,#ff9f8a,#ff6f91);box-shadow:0 12px 24px rgba(255,111,145,.35);animation:arFloat 5s ease-in-out infinite reverse}
.g-star{position:absolute;width:20px;height:20px;background:#f7a3bd;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);animation:arTwinkle2 3.6s ease-in-out infinite}
.g-star.s1{top:0;left:40px}.g-star.s2{top:70px;right:4px;width:16px;height:16px;background:#ff8f8f;animation-delay:1.2s}.g-star.s3{top:16px;left:90px;width:9px;height:9px;background:#d9d2fb;animation-delay:2.2s}
@keyframes arFloat{0%,100%{translate:0 0}50%{translate:0 -8px}}
@keyframes arTwinkle2{0%,100%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
.ar-art-title{position:relative;margin:0 0 6px;font-size:24px;font-weight:900}
.ar-art-sub{position:relative;margin:0 0 auto;max-width:280px;color:#6f7587;font-size:14.5px;line-height:2}
.ar-auth-art .ar-art-title{margin-top:250px}
.ar-art-brand{display:flex;align-items:center;gap:8px;margin-top:28px}
.ar-art-brand span{display:flex;flex-direction:column;line-height:1.05;text-align:right}
.ar-art-brand b{font-size:21px;font-weight:900}
.ar-art-brand small{font-size:11px;color:var(--ink-2);margin-top:3px}
.ar-art-brand img{width:44px;height:44px;object-fit:contain}

/* ---------- FREE TOOLS (embedded tools.js studio) ---------- */
.ar-kit{background:#f4f6f5;box-shadow:var(--sh-1)}
.ar-kit .lt-scope{--lt-vh:calc(100dvh - 178px);min-height:100%;border-radius:var(--r-xl);font-family:"Vazirmatn",Tahoma,sans-serif;background:#f6f6f9}
.ar-kit .lt-scope .lt-hero h1 em{background:linear-gradient(90deg,#8b7cf6,#e5528a);-webkit-background-clip:text;background-clip:text;color:transparent}
.ar-kit .lt-scope .lt-btn-primary{background:var(--dark)}

/* toast */
.ar-toast{position:absolute;left:50%;bottom:24px;z-index:120;max-width:min(520px,calc(100% - 32px));transform:translate(-50%,16px);opacity:0;pointer-events:none;padding:12px 20px;border-radius:999px;background:var(--dark);color:#fff;font-size:14px;font-weight:600;box-shadow:0 14px 34px rgba(20,26,40,.25);transition:opacity .25s,transform .35s var(--ease);text-align:center}
.ar-toast.is-on{opacity:1;transform:translate(-50%,0)}
.ar-toast[data-kind="err"]{background:#b83232}

/* ---------- responsive ---------- */
@media (max-width:1240px){
  .ar{grid-template-columns:206px minmax(0,1fr) 262px}
  .ar[data-av="studio"],.ar[data-av="library"],.ar[data-av="settings"],.ar[data-av="kit"],.ar[data-av="auth"]{grid-template-columns:206px minmax(0,1fr)}
  .ar-studio-grid{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
}
@media (max-width:1060px){
  .ar,.ar[data-av]{grid-template-columns:206px minmax(0,1fr)!important}
  .ar-side{position:absolute;top:14px;bottom:14px;left:14px;z-index:70;width:min(320px,calc(100% - 28px));display:flex!important;transform:translateX(calc(-100% - 20px));transition:transform .4s var(--ease);box-shadow:var(--sh-2);background:#fff}
  .ar[data-side="1"] .ar-side{transform:none}
  .ar-side-backdrop{position:absolute;inset:0;z-index:65;display:block;background:rgba(20,24,40,.18);opacity:0;pointer-events:none;transition:opacity .3s;border-radius:0}
  .ar[data-side="1"] .ar-side-backdrop{opacity:1;pointer-events:auto}
  .ar-side-toggle{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#4c5366;flex:0 0 auto}
  .ar-side-toggle:hover{background:#f1f2f6}
  .ar-home>.ar-side-toggle{position:absolute;top:14px;right:14px;background:#fff;box-shadow:var(--sh-1)}
  .ar-studio-grid{grid-template-columns:1fr}
  .ar-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
}
@media (max-width:860px){
  .ar,.ar[data-av]{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:10px}
  .ar-rail{flex-direction:row;align-items:center;gap:4px;padding:6px 8px;border-radius:20px;overflow-x:auto;overflow-y:hidden}
  .ar-brand{padding:0 4px 0 8px;flex:0 0 auto}
  .ar-brand img{width:36px;height:36px}
  .ar-brand-text{display:none}
  .ar-nav{flex-direction:row;gap:2px}
  .ar-nav-item{flex:0 0 auto;height:40px;padding:0 12px;gap:6px;font-size:14px;flex-direction:row-reverse}
  .ar-nav-item svg{width:19px;height:19px}
  .ar-nav-group{display:flex;margin:0}
  .ar-nav-head{display:none}
  .ar-nav-group-body,.ar-nav-group[data-open="0"] .ar-nav-group-body{display:flex!important;flex-direction:row;gap:2px}
  .ar-nav-sub{height:40px}
  .ar-me{display:none}
  .ar-side{top:10px;bottom:10px;left:10px;width:min(330px,calc(100% - 20px))}
  .ar-home{padding:18px 14px 14px;border-radius:22px}
  .ar-home>.ar-side-toggle{top:10px;right:10px}
  .ar-hero-bird{width:96px;height:96px}
  .ar-cards{grid-template-columns:1fr;gap:8px}
  .ar-card{min-height:0;padding:14px 16px 14px 76px}
  .ar-card b{margin-top:0}
  .ar-card-art{top:50%;margin-top:-22px;width:44px;height:44px}
  .ar-suggest{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .ar-suggest-chip{flex:0 0 auto}
  .ar-chat-head{padding:10px 10px}
  .ar-bot-ava{width:38px;height:38px}
  .ar-chat-title small{max-width:36vw}
  .ar-thread{padding:16px 12px 8px;gap:14px}
  .ar-msg-ava{width:32px;height:32px;font-size:13px}
  .ar-bubble{padding:10px 14px;font-size:14.5px}
  .ar-composer-chat{margin:6px 8px 10px}
  .ar-composer-row .ar-icon-btn{width:36px;height:36px}
  .ar-studio-panel,.ar-canvas-wrap{padding:16px;border-radius:22px}
  .ar-styles{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ar-style i{height:38px}
  .ar-canvas{min-height:260px}
  .ar-library,.ar-settings{padding:16px}
  .ar-set-grid{grid-template-columns:1fr}
  .ar-gallery{columns:2 140px;column-gap:8px}
  .ar-tile{margin-bottom:8px;border-radius:14px}
  .ar-lb-card{grid-template-columns:1fr;padding:12px}
  .ar-auth{padding:0;align-items:stretch}
  .ar-auth-card{grid-template-columns:1fr;min-height:0;border-radius:22px}
  .ar-auth-art{display:none}
  .ar-auth-form{padding:22px 18px}
  .ar-input-pair{grid-template-columns:1fr}
  .ar-kit .lt-scope{--lt-vh:calc(100dvh - 210px)}
}
@media (max-width:520px){
  .ar-styles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ar-composer-bar .ar-chip span{display:none}
  .ar-composer-bar .ar-chip{width:38px;padding:0;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.ar *,.ar *::before,.ar *::after{animation:none!important;transition:none!important}}

/* =====================================================================
   Artino v2 (2026-10-19)
   · full-screen app (the site header & bottom nav are hidden by html.artino-immersive)
   · engine picker · image engines · Gmail sign-up with a 6-digit code
   · phone app shell: top bar + Artino's own tab bar, sheets instead of popovers
   · the free tools ("کیت") now wear the Artino look
   ===================================================================== */
html.logoart-app-mode main > #tools.artino-page{background:#f2f3f7!important}
.ar{height:100%;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-right))}

/* rail top: on desktop its children flow straight into the rail column */
.ar-rail-top{display:contents}
.ar-rail-top>.ar-grow,.ar-top-only{display:none!important}
.ar-exit{order:99;display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;height:42px;margin-top:8px;padding:0 14px;border-radius:14px;border:1px dashed #dcdee7;color:var(--muted);font-size:13.5px;font-weight:700;transition:background .2s,color .2s,border-color .2s}
.ar-exit svg{width:18px;height:18px}
.ar-exit:hover{background:#fff;color:var(--ink);border-color:#cfd2dc;border-style:solid}
.ar-tabbar,.ar-back,.ar-pop-shade{display:none}
.ar-top-ava{width:40px;height:40px;place-items:center;border-radius:50%}
.ar-top-ava .ar-avatar{width:34px;height:34px;font-size:14px;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--line)}
.ar-top-ava .ar-avatar svg{width:18px;height:18px}

/* ---------- engine picker ---------- */
.ar-eng-dot{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:var(--t,#8b7cf6);box-shadow:0 0 0 3px color-mix(in srgb,var(--t,#8b7cf6) 20%,transparent)}
.ar-engine-chip>svg:last-child,.ar-engine-btn>svg:last-child{width:15px;height:15px;opacity:.6}
.ar-engine-btn{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 10px 0 13px;border-radius:999px;background:#f6f6fa;border:1px solid var(--line);font-size:13.5px;font-weight:700;color:var(--ink-2);white-space:nowrap;transition:background .2s,border-color .2s}
.ar-engine-btn:hover{background:#fff;border-color:#d8d3f6}
.ar-eng-mark{width:36px;height:36px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--t,#8b7cf6) 13%,#fff);color:var(--t,#8b7cf6);font-weight:900;font-size:15px;line-height:1}
.ar-eng-mark.is-artino{background:linear-gradient(140deg,#8b7cf6,#b18cf7 45%,#e5528a);color:#fff;box-shadow:0 6px 14px rgba(139,124,246,.32)}
.ar-eng-mark.is-artino svg{width:19px;height:19px;fill:#fff;stroke:#fff;stroke-width:1}
.ar-eng-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:16px;text-align:right;transition:background .2s}
.ar-eng-row:hover:not(:disabled){background:var(--panel-2)}
.ar-eng-row.is-on{background:var(--lav-2)}
.ar-eng-row:disabled{opacity:.42;cursor:not-allowed}
.ar-eng-tx{display:flex;flex-direction:column;line-height:1.45;min-width:0}
.ar-eng-tx b{font-size:14.5px;font-weight:800}
.ar-eng-tx b em{font-style:normal;font-size:11px;font-weight:800;padding:1px 8px;border-radius:99px;background:var(--blush);color:#c23a6c;margin-inline-start:6px;vertical-align:1px}
.ar-eng-tx small{font-size:12.5px;color:var(--muted)}
.ar-eng-check{margin-inline-start:auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--violet);color:#fff}
.ar-eng-check svg{width:15px;height:15px;stroke-width:2.4}
.ar-engine-pop{gap:2px}
.ar-eng-tag{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:99px;background:var(--lav-2);color:#6a5bd8;font-size:11.5px;font-weight:700;white-space:nowrap}
.ar-thinking{font-size:12.5px;color:var(--muted);padding:0 8px;animation:arPulseText 1.8s ease-in-out infinite}
@keyframes arPulseText{50%{opacity:.45}}
.ar-img-engines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ar-img-eng{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px 8px 8px;border-radius:16px;background:#fff;border:1px solid var(--line);text-align:right;transition:border-color .2s,box-shadow .2s,transform .2s var(--ease)}
.ar-img-eng>span:last-child{min-width:0;display:flex;flex-direction:column;line-height:1.4}
.ar-img-eng b{font-size:13.5px;font-weight:800}
.ar-img-eng small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-img-eng .ar-eng-mark{width:30px;height:30px;border-radius:10px;font-size:13px}
.ar-img-eng .ar-eng-mark.is-artino svg{width:16px;height:16px}
.ar-img-eng:hover:not(:disabled){transform:translateY(-1px);border-color:#dcd7f7}
.ar-img-eng.is-on{border-color:var(--violet);box-shadow:0 0 0 3px rgba(139,124,246,.16)}
.ar-img-eng:disabled{opacity:.42;cursor:not-allowed}

/* sheets (phones) */
.ar-pop-shade{position:absolute;inset:0;z-index:58;background:rgba(20,24,40,.3);opacity:0;transition:opacity .25s ease}
.ar-pop-shade:not([hidden]){display:block}
.ar-pop-shade.is-on{opacity:1}
.ar-sheet-grip{display:none}
.ar-pop.is-sheet{position:absolute;left:0;right:0;bottom:0;top:auto;width:auto;max-height:80%;padding:6px 14px calc(16px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;box-shadow:0 -10px 40px rgba(20,24,40,.18);animation:arSheet .34s var(--ease) both;overscroll-behavior:contain}
.ar-pop.is-sheet .ar-sheet-grip{display:block;flex:0 0 auto;width:42px;height:5px;margin:4px auto 6px;border-radius:9px;background:#dfe1e8}
@keyframes arSheet{from{transform:translateY(100%)}to{transform:none}}

/* ---------- sign-up: Gmail + 6-digit code ---------- */
.ar-hint{margin:-6px 6px 0;font-size:12.5px;line-height:1.8;color:var(--muted)}
.ar-hint-c{margin:0;text-align:center}
.ar-otp{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:4px 0}
.ar-otp input{width:100%;height:60px;padding:0;border-radius:16px;border:1.5px solid #e2e4ec;background:#fff;text-align:center;font-size:25px!important;font-weight:800;color:var(--ink);outline:0;caret-color:var(--violet);transition:border-color .2s,box-shadow .2s,background .2s,transform .2s var(--ease)}
.ar-otp input:focus{border-color:var(--violet);box-shadow:0 0 0 4px rgba(139,124,246,.14)}
.ar-otp input.is-filled{border-color:#cfc6fa;background:var(--lav-2);transform:translateY(-1px)}
.ar-otp.is-error input{border-color:#f0b3b3;background:#fff7f7;animation:arShake .35s ease}
.ar-otp-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px}
.ar-otp-foot .ar-link{font-size:13.5px}
.ar-link:disabled{color:var(--muted);cursor:default;text-decoration:none!important}
#arVTimer{font-variant-numeric:tabular-nums}
.g-mail{width:168px;height:118px;top:52px;left:32px;transform:rotate(-5deg);animation:arFloat 7s ease-in-out infinite;display:flex;align-items:flex-end;justify-content:center;padding-bottom:22px;overflow:hidden}
.g-flap{position:absolute;top:0;left:0;right:0;height:64px;background:linear-gradient(160deg,#e6defd,#cbbcf9);clip-path:polygon(0 0,100% 0,50% 100%)}
.g-code{position:relative;font-style:normal;font-weight:900;font-size:17px;letter-spacing:3px;color:#7a5af5}
.g-ok{background:linear-gradient(140deg,#5fd3a0,#2fb980)!important;box-shadow:0 12px 24px rgba(47,185,128,.35)!important;font-size:24px!important;font-weight:800!important}

/* ---------- FREE TOOLS · the Artino look ---------- */
.ar-kit{background:transparent;box-shadow:none;border-radius:var(--r-xl)}
.ar-kit .lt-scope{
  --bg:transparent;--surface:#fff;--surface-2:#f8f8fb;--ink:#141a26;--ink-2:#3b4254;--muted:#8a90a0;--line:#eceef3;--line-2:#f3f4f8;
  --mint:#8b7cf6;--mint-deep:#5b4bd6;--mint-wash:#f1eefe;--red:#e5528a;--red-2:#ec6fa0;--red-wash:#fde8ee;
  --r-xl:24px;--r-lg:20px;--r-md:14px;--r-sm:10px;--shadow-1:var(--sh-1);--shadow-2:var(--sh-2);
  --lt-vh:calc(100dvh - 28px);background:transparent;color:var(--ink);font-size:15px}
.ar-kit .lt-scope :focus-visible{outline-color:var(--violet)}
.ar-kit .lt-scope .lt-hub{width:auto;margin:0;padding:clamp(22px,4vw,46px) clamp(18px,3.4vw,44px) 40px;border-radius:var(--r-xl);background:rgba(255,255,255,.55)}
.ar-kit .lt-scope .lt-hero h1{font-size:clamp(32px,4.4vw,56px);font-weight:900;letter-spacing:-.5px}
.ar-kit .lt-scope .lt-hero-sub{color:#7b8193;font-size:16px}
.ar-kit .lt-scope .lt-hero-drop{border-radius:26px;border:1.5px dashed #d4cdf8;background:radial-gradient(120% 90% at 85% 0%,#fff 0%,#f7f4ff 45%,#fdeef3 100%);box-shadow:var(--sh-1)}
.ar-kit .lt-scope .lt-hero-drop:hover,.ar-kit .lt-scope .lt-hero-drop.is-over{border-color:var(--violet)}
.ar-kit .lt-scope .lt-layer{border-radius:18px;border-color:#e6e0fb;box-shadow:0 12px 28px rgba(120,100,220,.1)}
.ar-kit .lt-scope .lt-layer.l2{background:linear-gradient(160deg,#fff,#f6f3ff)}
.ar-kit .lt-scope .lt-layer.l3{background:linear-gradient(150deg,#fff 0%,#f4f0ff 60%,#fde8ee 100%)}
.ar-kit .lt-scope .lt-layer.l3::before{background:linear-gradient(135deg,#a993f5,#8b7cf6);border-radius:8px}
.ar-kit .lt-scope .lt-layer.l3::after{background:#ff8fb1}
.ar-kit .lt-scope .lt-hero-drop-icon{border-radius:50%;background:var(--dark);box-shadow:0 10px 22px rgba(20,26,40,.25)}
.ar-kit .lt-scope .lt-formats{color:#a3a8b6!important}
.ar-kit .lt-scope .lt-picked{border-radius:20px;border:0;box-shadow:var(--sh-1)}
.ar-kit .lt-scope .lt-picked-thumb{border-radius:14px}
.ar-kit .lt-scope .lt-group-head h2{font-size:19px;font-weight:900}
.ar-kit .lt-scope .lt-card{border-radius:22px;border:0;background:#fff;box-shadow:var(--sh-1);padding:20px 20px 18px}
.ar-kit .lt-scope .lt-card:hover{box-shadow:var(--sh-2);transform:translateY(-4px)}
.ar-kit .lt-scope .lt-card-icon{width:48px;height:48px;border-radius:15px;background:var(--lav-2);color:#6a4ff0}
.ar-kit .lt-scope .lt-card.is-ai .lt-card-icon{background:var(--blush);color:#e04e7a}
.ar-kit .lt-scope .lt-card b{font-size:16px}
.ar-kit .lt-scope .lt-card p{font-size:14px;line-height:1.8}
.ar-kit .lt-scope .lt-card-go{background:#f4f4f8}
.ar-kit .lt-scope .lt-card:hover .lt-card-go{background:var(--dark)}
.ar-kit .lt-scope .lt-badge{border-radius:999px;background:var(--blush);color:#c23a6c}
.ar-kit .lt-scope .lt-promise>div{border-radius:20px;border:0;background:rgba(255,255,255,.8);box-shadow:var(--sh-1)}
.ar-kit .lt-scope .lt-promise svg{color:var(--violet)}
.ar-kit .lt-scope .lt-btn{border-radius:999px;font-size:14px}
.ar-kit .lt-scope .lt-btn-dark,.ar-kit .lt-scope .lt-btn-primary{background:var(--dark);color:#fff;box-shadow:0 8px 22px rgba(20,26,40,.18)}
.ar-kit .lt-scope .lt-btn-primary:not(:disabled):hover,.ar-kit .lt-scope .lt-btn-dark:not(:disabled):hover{background:#0d121c;box-shadow:0 12px 28px rgba(20,26,40,.26)}
.ar-kit .lt-scope .lt-btn-ghost{background:#fff;border-color:var(--line)}
.ar-kit .lt-scope .lt-icon-btn{border-radius:50%}
/* breadcrumb bar */
.ar-kit .lt-scope[data-view="tool"] .lt-subbar{margin-bottom:12px;border-radius:20px;background:rgba(255,255,255,.88);box-shadow:var(--sh-1);border:0;padding:0 16px}
.ar-kit .lt-scope .lt-crumb-home,.ar-kit .lt-scope .lt-crumb-tool{font-size:14px}
/* workspace */
.ar-kit .lt-scope .lt-app[data-view="tool"] .lt-work{gap:14px}
.ar-kit .lt-scope .lt-rail{top:60px;height:calc(var(--lt-vh) - 60px);border:0;border-radius:var(--r-xl);background:rgba(255,255,255,.88);box-shadow:var(--sh-1);padding:18px 12px}
.ar-kit .lt-scope .lt-rail-label{font-size:13px;font-weight:800;color:var(--ink)}
.ar-kit .lt-scope .lt-rail-item{height:46px;border-radius:14px;font-size:14.5px;color:var(--ink-2)}
.ar-kit .lt-scope .lt-rail-item svg{border-radius:11px;background:#f4f4f8;box-shadow:none}
.ar-kit .lt-scope .lt-rail-item:hover{background:var(--panel-2)}
.ar-kit .lt-scope .lt-rail-item.is-active{background:var(--lav-2);color:#4b3dc4;font-weight:800}
.ar-kit .lt-scope .lt-rail-item.is-active::before{background:var(--violet)}
.ar-kit .lt-scope .lt-rail-item.is-active svg{background:linear-gradient(135deg,var(--violet),var(--violet-2));color:#fff}
.ar-kit .lt-scope .lt-rail-item .lt-dot-ai{border-radius:99px;background:var(--blush);color:#c23a6c}
.ar-kit .lt-scope .lt-stage-wrap{padding:0 0 14px}
.ar-kit .lt-scope .lt-stage-icon{border-radius:15px;background:var(--lav-2);color:#6a4ff0}
.ar-kit .lt-scope .lt-stage-icon.is-ai{background:var(--blush);color:#e04e7a}
.ar-kit .lt-scope .lt-stage-title h2{font-size:20px;font-weight:900}
.ar-kit .lt-scope .lt-stage-title p{font-size:14px}
.ar-kit .lt-scope .lt-stage{border-radius:var(--r-xl);border:0;box-shadow:var(--sh-1)}
.ar-kit .lt-scope .lt-drop{border-radius:20px;border:1.5px dashed #d4cdf8;background:radial-gradient(90% 80% at 50% 0%,#fff 0%,#f7f4ff 70%,#fdf1f5 100%)}
.ar-kit .lt-scope .lt-drop:hover,.ar-kit .lt-scope .lt-drop.is-over{border-color:var(--violet);background:radial-gradient(90% 80% at 50% 0%,#fff 0%,#f1ecff 100%)}
.ar-kit .lt-scope .lt-drop-glow{background:radial-gradient(circle,rgba(139,124,246,.2),transparent 70%)}
.ar-kit .lt-scope .lt-drop-icon{border-radius:24px;color:#6a4ff0}
.ar-kit .lt-scope .lt-view{background-color:#f8f8fb}
.ar-kit .lt-scope .lt-view>img,.ar-kit .lt-scope .lt-view canvas,.ar-kit .lt-scope .lt-compare{border-radius:16px}
.ar-kit .lt-scope .lt-cmp-tag{border-radius:99px}
.ar-kit .lt-scope .lt-cmp-tag.t-after{background:rgba(139,124,246,.9)}
.ar-kit .lt-scope .lt-filebar{border-top-color:var(--line-2)}
.ar-kit .lt-scope .lt-chip{border-radius:999px}
.ar-kit .lt-scope .lt-chip.is-good{background:#eafaf2;border-color:#cdeedd;color:#14935d}
.ar-kit .lt-scope .lt-bar{border-radius:22px;border:0;box-shadow:var(--sh-2)}
.ar-kit .lt-scope .lt-seg{border-radius:999px;padding:3px}
.ar-kit .lt-scope .lt-seg button{border-radius:999px}
.ar-kit .lt-scope .lt-seg button.is-on{box-shadow:0 2px 8px rgba(24,28,52,.08),0 0 0 1px var(--line)}
.ar-kit .lt-scope .lt-num,.ar-kit .lt-scope .lt-lock,.ar-kit .lt-scope .lt-color,.ar-kit .lt-scope .lt-sel{border-radius:12px}
.ar-kit .lt-scope .lt-range input{accent-color:var(--violet)}
.ar-kit .lt-scope .lt-tile{border-radius:16px}
.ar-kit .lt-scope .lt-tile-img{border-radius:11px}
.ar-kit .lt-scope .lt-tile-add{border-color:#d4cdf8;background:var(--lav-2);color:#5b4bd6}
.ar-kit .lt-scope .lt-swatch{border-radius:14px}
.ar-kit .lt-scope .lt-swatch i{border-radius:11px}
.ar-kit .lt-scope .lt-note{border-radius:16px}
.ar-kit .lt-scope .lt-busy{background:rgba(242,243,247,.74)}
.ar-kit .lt-scope .lt-busy-card{border-radius:24px}
.ar-kit .lt-scope .lt-busy-tile{border-radius:16px;background:linear-gradient(140deg,var(--violet),var(--violet-2) 50%,var(--pink));box-shadow:0 10px 24px rgba(139,124,246,.35)}
.ar-kit .lt-scope .lt-busy-logo::before{border-radius:20px;border-color:rgba(139,124,246,.18)}
.ar-kit .lt-scope .lt-busy-ring rect{stroke:var(--violet)}
.ar-kit .lt-scope .lt-progress{background:#eeebfc}
.ar-kit .lt-scope .lt-progress i{background:linear-gradient(90deg,var(--violet),var(--pink))}
.ar-kit .lt-scope .lt-busy-card small{color:#6a4ff0}
.ar-kit .lt-scope .lt-busy-cancel{border-radius:999px}
.ar-kit .lt-scope .lt-toast{border-radius:999px;background:var(--dark)}

/* ---------- phones: the Artino app shell ---------- */
@media (max-width:860px){
  .ar,.ar[data-av]{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto;gap:0;padding:0}
  .ar[data-av="chat"]{grid-template-rows:minmax(0,1fr)}
  /* top app bar */
  .ar-rail{flex-direction:row;align-items:center;gap:0;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;border-radius:0;background:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 1px 0 var(--line);overflow:visible;z-index:30}
  .ar-rail .ar-nav,.ar-rail .ar-nav-group,.ar-rail .ar-me{display:none!important}
  .ar-rail-top{display:flex;align-items:center;gap:2px;width:100%}
  .ar-rail-top>.ar-grow{display:block!important}
  .ar-top-only{display:grid!important}
  .ar-brand{padding:0;gap:9px;flex-direction:row-reverse}
  .ar-brand img{width:36px;height:36px}
  .ar-brand-text{display:flex}
  .ar-brand-text b{font-size:19px}
  .ar-brand-text small{font-size:10.5px;margin-top:2px}
  .ar-exit{order:-1;width:40px;height:40px;margin:0 0 0 2px;padding:0;border:0;border-radius:50%;color:var(--ink-2)}
  .ar-exit span{display:none}
  .ar-exit svg{width:21px;height:21px}
  .ar-exit:hover,.ar-exit:active{background:#f1f2f6;border:0}
  /* stage */
  .ar-main{min-height:0;padding:12px 12px 0}
  .ar[data-av="chat"] .ar-rail,.ar[data-av="chat"] .ar-tabbar{display:none!important}
  .ar[data-av="chat"] .ar-main{padding:0}
  /* bottom tab bar */
  .ar-tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 -1px 0 var(--line);z-index:30}
  .ar-tab{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:3px 0 2px;color:#8a90a0;font-size:11.5px;font-weight:700;-webkit-tap-highlight-color:transparent}
  .ar-tab svg{width:54px!important;height:30px!important;padding:5px 16px;border-radius:999px;transition:background .25s var(--ease),color .25s}
  .ar-tab span{white-space:nowrap}
  .ar-tab.is-active{color:var(--ink)}
  .ar-tab.is-active svg{background:var(--lav);color:#4b3dc4}
  .ar-tab:active svg{transform:scale(.94)}
  /* home */
  .ar-home{justify-content:flex-start;gap:14px;padding:6px 2px 12px;background:transparent;border-radius:0}
  .ar-home>.ar-side-toggle{top:0;right:2px}
  .ar-home-center{margin:10px 0 0}
  .ar-hero-bird{width:84px;height:84px;margin-bottom:2px}
  .ar-hello{font-size:30px;margin-top:4px}
  .ar-hello-sub{font-size:15px;margin-bottom:18px}
  .ar-cards{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(230px,78%);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 10px;margin:0 -2px;scrollbar-width:none}
  .ar-cards::-webkit-scrollbar{display:none}
  .ar-card{scroll-snap-align:start;min-height:132px;padding:16px 16px 16px 72px}
  .ar-card-art{top:16px;margin-top:0;left:16px;width:42px;height:42px}
  .ar-card b{margin-top:0;font-size:16px}
  .ar-composer-home{position:sticky;bottom:0;z-index:5;margin-top:auto;border-radius:24px;box-shadow:0 10px 30px rgba(24,28,52,.1)}
  .ar-composer textarea{font-size:16px}
  .ar-composer-bar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .ar-composer-bar::-webkit-scrollbar{display:none}
  .ar-engine-chip span{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ar-suggest{display:none}
  /* chat: a full-screen conversation with its own header */
  .ar-chat{border-radius:0;box-shadow:none;background:#fff}
  .ar-chat-head{gap:4px;padding:calc(8px + env(safe-area-inset-top)) 8px 8px;border-bottom:1px solid var(--line-2)}
  .ar-back{display:grid}
  .ar-bot-ava{width:36px;height:36px}
  .ar-bot-ava svg{width:18px;height:18px}
  .ar-chat-title b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
  .ar-chat-title small{max-width:34vw}
  .ar-chat-head [data-ar-copyall]{display:none}
  .ar-engine-btn{height:36px;padding:0 8px 0 10px;gap:6px;font-size:12.5px}
  .ar-engine-btn span{max-width:66px;overflow:hidden;text-overflow:ellipsis}
  .ar-thread{padding:14px 12px 8px}
  .ar-msg{max-width:100%}
  .ar-chat-img{max-width:100%}
  .ar-composer-chat{margin:6px 10px calc(10px + env(safe-area-inset-bottom));border-radius:26px}
  .ar-composer-chat textarea{font-size:16px;padding:9px 12px}
  /* other views */
  .ar-studio,.ar-library,.ar-settings,.ar-kit{border-radius:22px 22px 0 0;padding-bottom:14px}
  .ar-studio-grid{gap:10px}
  .ar-img-engines{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ar-library,.ar-settings{padding:16px 14px}
  .ar-auth{padding:0 0 14px}
  .ar-auth-card{border-radius:24px;box-shadow:var(--sh-1)}
  .ar-auth-form{padding:22px 16px}
  .ar-otp{gap:6px}
  .ar-otp input{height:54px;border-radius:14px;font-size:22px!important}
  .ar-input input{font-size:16px}
  /* history drawer */
  .ar-side{top:0!important;bottom:0!important;left:0!important;width:min(340px,86vw)!important;border-radius:0 26px 26px 0;padding:calc(18px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom))}
  .ar-side-backdrop{background:rgba(20,24,40,.3)}
  /* lightbox: full screen */
  .ar-lightbox{padding:0}
  .ar-lb-card{width:100%;height:100%;max-height:100%;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));align-content:start}
  .ar-lb-img img{max-height:60dvh}
  .ar-lb-close{top:calc(14px + env(safe-area-inset-top));left:14px}
  .ar-lb-text{height:auto;max-height:90%;border-radius:24px;width:calc(100% - 24px);padding:24px 18px}
  .ar-toast{bottom:calc(86px + env(safe-area-inset-bottom))}
  .ar[data-av="chat"] .ar-toast{bottom:calc(84px + env(safe-area-inset-bottom))}
  /* free tools inside the app shell */
  .ar-kit .lt-scope{--lt-vh:calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .ar-kit .lt-scope .lt-hub{padding:20px 14px 30px;border-radius:22px}
  .ar-kit .lt-scope .lt-hero h1{font-size:30px}
  .ar-kit .lt-scope .lt-hero-sub{font-size:15px}
  .ar-kit .lt-scope .lt-rail{top:58px;height:auto;padding:8px;border-radius:20px;margin-bottom:10px}
  .ar-kit .lt-scope .lt-rail-item{height:40px;border-radius:999px;border:1px solid var(--line);background:#fff}
  .ar-kit .lt-scope .lt-rail-item.is-active{border-color:#d4cdf8;background:var(--lav-2)}
  .ar-kit .lt-scope[data-view="tool"] .lt-subbar{border-radius:18px;margin-bottom:10px;padding:0 10px}
  .ar-kit .lt-scope .lt-stage-wrap{padding:0 0 calc(12px + env(safe-area-inset-bottom))}
  .ar-kit .lt-scope .lt-bar{border-radius:20px;bottom:10px}
  .ar-kit .lt-scope .lt-toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media (max-width:380px){
  .ar-brand-text small{display:none}
  .ar-tab{font-size:10.5px}
  .ar-tab svg{width:46px!important;padding:5px 12px}
  .ar-otp input{height:48px;font-size:20px!important}
}

/* Mobile reference pass: Artino phone shell, auth, index and conversation */
@media (max-width:860px){
  .ar[data-av="chat"]{grid-template-rows:minmax(0,1fr) auto!important}
  .ar[data-av="chat"] .ar-tabbar{display:grid!important}
  .ar[data-av="chat"] .ar-main{padding-bottom:0}
  .ar[data-av="chat"] .ar-chat{min-height:0}
  .ar[data-av="chat"] .ar-thread{background:linear-gradient(180deg,#fff 0%,#fbfaff 100%)}
  .ar[data-av="chat"] .ar-composer-chat{margin-bottom:10px}

  .ar-home{padding-inline:8px}
  .ar-home-center{margin-top:4px}
  .ar-hero-bird{width:92px;height:92px}
  .ar-hello{font-size:28px}
  .ar-hello-sub{font-size:14px;margin-top:2px}
  .ar-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    overflow:visible;
    scroll-snap-type:none;
    width:100%;
    gap:10px;
    padding:0 0 8px;
    margin:0;
  }
  .ar-card{
    min-height:150px;
    padding:54px 12px 12px;
    border-radius:20px;
    text-align:center;
  }
  .ar-card-art{position:static;margin:0 auto 8px;width:40px;height:40px}
  .ar-card b{display:block;font-size:14px}
  .ar-card span:last-child{display:block;font-size:11.5px;line-height:1.7}
  .ar-composer-home{margin-inline:0}

  /* Auth becomes the tall, single-column phone screen shown in the mockups. */
  .ar[data-av="auth"] .ar-rail{display:flex!important}
  .ar[data-av="auth"] .ar-main{padding:0}
  .ar-auth{padding:0 0 calc(12px + env(safe-area-inset-bottom));overflow:auto;background:linear-gradient(180deg,#fff 0%,#fbfaff 72%,#fff 100%)}
  .ar-auth-card{display:flex;flex-direction:column;width:100%;min-height:100%;border-radius:0;background:transparent;box-shadow:none}
  .ar-auth-art{display:flex;order:0;flex:0 0 235px;height:235px;padding:16px 20px 0;border:0;background:radial-gradient(180px 130px at 50% 40%,rgba(214,205,253,.7),transparent 72%),radial-gradient(170px 140px at 28% 75%,rgba(253,214,224,.68),transparent 72%),transparent}
  .ar-auth-form{order:1;justify-content:flex-start;padding:0 18px 20px}
  .ar-auth-logo{display:none}
  .ar-auth-art .ar-glass-scene{top:8px;transform:scale(.82)}
  .ar-auth-art .ar-art-title{margin-top:155px;font-size:22px}
  .ar-auth-art .ar-art-sub{display:none}
  .ar-auth-art .ar-art-brand{display:none}
  .ar-auth-pane h2{font-size:23px}
  .ar-auth-lead{font-size:13.5px;margin-bottom:6px}
  .ar-auth-pane{gap:10px}
  .ar-auth-pane .ar-btn-dark{height:50px}
  .ar-input{min-height:58px;border-radius:16px}
  .ar-auth-row{font-size:12.5px}
  .ar-auth-switch{font-size:13.5px}
}
