/* The Studio, polished (body.im-look2, on trial behind ?look=2). Presentation
   only: every feature, id and the composer itself are untouched. One calm
   near-black, a plain headline in place of the painted banner, the styles to
   try as a fan of cards, and the latest paintings folded away until asked for. */

/* ── Surfaces: one near-black, colour only where you act ─────────────────── */
.im-look2 .im-layout {
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(224, 68, 110, 0.07), transparent 70%),
    #0e0b0d;
}
.im-look2 .im-sidebar { background: #0b090a; border-right-color: rgba(255, 255, 255, 0.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.im-look2 .im-sb-item { font-size: 0.86rem; color: rgba(244, 233, 228, 0.62); }
.im-look2 .im-sb-item:hover { color: #f4e9e4; background: rgba(255, 255, 255, 0.04); }
.im-look2 .im-sb-item--active { color: #f4e9e4; background: rgba(255, 255, 255, 0.06); border-color: transparent; box-shadow: none; }

/* Before a session starts, the headline, styles and composer sit together in
   the middle of the screen; the trust line stays at the foot. */
.im-look2:not(.im-chatting) .kz-ib { margin-top: auto; }
/* The composer sits low, just above the dock, as Krea's does; the free space
   is shared above the headline and between the styles and the composer. */
.im-look2 #imLoggedIn:not([style*="none"]) { display: flex !important; }   /* the Studio shows it inline as block */
.im-look2:not(.im-chatting) .im-widget { flex: 1 0 auto; }
.im-look2:not(.im-chatting) .im-widget > .kz-ib { margin-top: auto; }
.im-look2:not(.im-chatting) .im-ins-strip { margin-bottom: auto; padding-bottom: 24px; }
.im-look2 .im-l2-dock { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ── The headline: the banner's own words, without the poster ────────────── */
.im-look2 .kz-ib {
  height: auto; margin: clamp(24px, 6vh, 72px) 0 8px; border-radius: 0; overflow: visible;
  background: none; box-shadow: none; text-align: center;
}
.im-look2 .kz-ib-layer, .im-look2 .kz-ib canvas { display: none; }
.im-look2 .kz-ib-copy { position: static; transform: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; max-width: none; }
.im-look2 .kz-ib-kalpana { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--im-gold); opacity: 0.85; margin: 0; }
.im-look2 .kz-ib-line {
  margin: 0; font: 600 clamp(2rem, 4.2vw, 3.3rem)/1.04 'Inter', system-ui, sans-serif; letter-spacing: -0.035em;
  color: #f6eee8; text-shadow: none; text-wrap: balance;
}
.im-look2 .kz-ib-line em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--im-gold); letter-spacing: 0; }

/* ── Styles to try: a fan of five tilted cards ───────────────────────────── */
.im-look2 .im-ins-strip { margin: 0 0 clamp(20px, 4vh, 40px); }
.im-look2 .im-ins-strip-head { justify-content: center; margin: 0 0 4px; }
.im-look2 .im-ins-strip-head .im-ins-more { margin-left: 0; }
.im-look2 .im-ins-strip .im-ins-styles {
  display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: visible;
  height: auto; perspective: none; cursor: default; -webkit-mask-image: none; mask-image: none;
}
.im-look2 .im-l2-fan { display: flex; justify-content: center; padding: 28px 0 18px; }
.im-look2 .im-l2-card {
  --r: calc((var(--k) - 2) * 4deg);
  position: relative; flex: none; width: clamp(118px, 13vw, 176px); aspect-ratio: 3 / 4; margin: 0 -14px; padding: 0;
  border-radius: 16px; overflow: hidden; border: 0; background: #1a1418; cursor: pointer;
  transform: rotate(var(--r)) translateY(calc(var(--d) * 7px));
  z-index: calc(3 - var(--d));                       /* the middle card on top, as in a hand */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
  animation: im-l2-deal 0.5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k) * 60ms);
}
.im-look2 .im-l2-card:hover, .im-look2 .im-l2-card:focus-visible {
  transform: rotate(0deg) translateY(-14px) scale(1.06); z-index: 5;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(216, 163, 94, 0.6);
}
.im-look2 .im-l2-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.im-look2 .im-l2-card span {
  position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px; text-align: left;
  background: linear-gradient(to top, rgba(8, 4, 6, 0.9), transparent);
  font: 600 0.84rem/1.2 'Inter', system-ui, sans-serif; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes im-l2-deal { from { opacity: 0; transform: translateY(24px) rotate(0deg); } }
.im-look2 .im-l2-more {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: rgba(244, 233, 228, 0.7);
  font: 500 0.76rem 'Inter', system-ui, sans-serif;
}
.im-look2 .im-l2-more:hover { color: #f4e9e4; border-color: rgba(216, 163, 94, 0.5); }
/* More styles and Recent, side by side under the fan (imagine-inspire.js) */
.im-look2 .im-l2-fan-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.im-look2 .im-l2-more[aria-pressed="true"] { color: #1d1420; border-color: transparent; background: linear-gradient(135deg, #e3b877, #c9935a); }
/* No recent styles yet: one quiet line where the hand would be, the same height, so nothing jumps */
.im-look2 .im-l2-fan.is-empty { align-items: center; min-height: calc(clamp(118px, 13vw, 176px) * 4 / 3 + 46px); }
.im-look2 .im-l2-fan-note { margin: 0; max-width: 30ch; text-align: center; color: rgba(244, 233, 228, 0.6); font: 400 0.9rem/1.5 'Inter', system-ui, sans-serif; }
@media (max-width: 740px) { .im-look2 .im-l2-fan.is-empty { min-height: calc(96px * 4 / 3 + 46px); } }

/* ── Around the composer: quieter ────────────────────────────────────────── */
.im-look2 .im-agent-link { opacity: 0.8; }
.im-look2 .im-agent-link:hover { opacity: 1; }
.im-look2 .im-quality-bar { border-top-color: rgba(255, 255, 255, 0.05); margin-top: 32px; }
.im-look2 .im-quality-bar span { color: rgba(244, 233, 228, 0.42); }

/* ── Your latest paintings: folded until asked for ───────────────────────── */
.im-look2 .im-l2-fold {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #f4e9e4;
  font: 600 0.72rem 'Inter', system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}
.im-look2 .im-l2-fold small { font-size: 0.7rem; letter-spacing: 0; color: var(--im-gold); font-weight: 600; }
.im-look2 .im-l2-fold svg { transition: transform 0.25s; color: rgba(244, 233, 228, 0.6); }
.im-look2 .im-l2-fold:hover { border-color: rgba(216, 163, 94, 0.5); }
.im-look2 #imInsRecentWrap.is-open .im-l2-fold svg { transform: rotate(180deg); }
@keyframes im-l2-open { from { opacity: 0; transform: translateY(-6px); } }

/* ── The dock at the foot of the start screen (imagine-look2.js) ─────────── */
/* Folded: one row, the pill and six thumbnails peeking. Open: the full grid. */
.im-look2 .im-l2-dock { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.im-look2.im-chatting #imInspire { display: none; }
.im-look2 .im-l2-dock .im-inspire { margin: 0; gap: 0; }
.im-look2 #imInsRecentWrap:not([hidden]):not(.is-open) { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.im-look2 #imInsRecentWrap .im-section-label { align-items: center; margin: 0; }
.im-look2 #imInsRecentWrap.is-open .im-section-label { margin-bottom: 12px; }
.im-look2 #imInsRecentWrap:not(.is-open) .im-section-label .im-ins-more { display: none; }
.im-look2 #imInsRecentWrap:not(.is-open) .im-ins-recent { display: flex; gap: 6px; order: 0; }
.im-look2 #imInsRecentWrap:not(.is-open) .im-ins-shot { width: 36px; height: 36px; aspect-ratio: 1; border-radius: 9px; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.im-look2 #imInsRecentWrap:not(.is-open) .im-ins-shot:hover { opacity: 1; transform: translateY(-2px); }
.im-look2 #imInsRecentWrap:not(.is-open) .im-ins-shot:nth-child(n+7) { display: none; }
.im-look2 #imInsRecentWrap.is-open .im-ins-recent { animation: im-l2-open 0.35s ease both; }
.im-look2 .im-l2-dock .im-quality-bar { margin: 0; padding: 0 0 4px; border: 0; }
.im-look2.im-chatting .im-l2-dock { border-top: 0; }

/* ── Sidebar: coloured tiles, groups, sessions, the foot ─────────────────── */
.im-look2 .im-sidebar { padding: 22px 12px 14px; }
.im-look2 .im-sb-nav { gap: 1px; padding: 0; }      /* an older rule pads it 30px a side on laptops */
.im-look2 .im-sb-item > span:not(.im-sb-item-icon):not(.im-sb-tag) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* The composer's lower row may wrap when the column is narrow (a laptop with
   the sidebar open): Generate then sits on its own line, inside the box. */
.im-look2 .im-comp-bar { flex-wrap: wrap; row-gap: 10px; }
.im-look2 .im-generate-bar { margin-left: auto; max-width: 100%; }
.im-look2 .im-sb-item { gap: 11px; padding: 7px 10px; font-size: 0.88rem; font-weight: 500; color: #e9e1dc; border-radius: 10px; }
.im-look2 .im-sb-item .im-sb-item-icon {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px;
  color: #fff; background: #2a2226; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.im-look2 .im-sb-item .im-sb-item-icon svg { width: 15px; height: 15px; }
.im-look2 .im-sb-item .im-sb-item-icon img { width: 20px; height: 20px; }
.im-look2 [data-tile="create"]    .im-sb-item-icon { background: linear-gradient(140deg, #f06a8e, #c02c58); }
.im-look2 [data-tile="mithu"]     .im-sb-item-icon { background: linear-gradient(140deg, #5fd17a, #23924a); }
.im-look2 [data-tile="nikhaar"]   .im-sb-item-icon { background: linear-gradient(140deg, #f3c56b, #c98a2b); }
.im-look2 [data-tile="architect"] .im-sb-item-icon { background: linear-gradient(140deg, #a98bff, #6f3fe0); }
.im-look2 [data-tile="styles"]    .im-sb-item-icon { background: linear-gradient(140deg, #ff9a4d, #e2551d); }
.im-look2 [data-tile="prompthub"] .im-sb-item-icon { background: linear-gradient(140deg, #5aa2ff, #2a63e0); }
.im-look2 [data-tile="gallery"]   .im-sb-item-icon { background: linear-gradient(140deg, #a688ff, #6a43e0); }
.im-look2 [data-tile="journal"]   .im-sb-item-icon { background: linear-gradient(140deg, #3ec9c0, #188a84); }
.im-look2 [data-tile="how"]       .im-sb-item-icon,
.im-look2 [data-tile="support"]   .im-sb-item-icon,
.im-look2 [data-tile="past"]      .im-sb-item-icon { background: #2a2226; color: #d9cfca; }
.im-look2 [data-tile="new"]       .im-sb-item-icon { background: rgba(255, 255, 255, 0.06); color: #f4e9e4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.im-look2 .im-sb-tag { margin-left: auto; }
.im-look2 .im-l2-group { margin: 16px 10px 5px; font-size: 0.74rem; font-weight: 500; color: rgba(244, 233, 228, 0.38); }
.im-look2 .im-l2-sessions { display: contents; }

.im-look2 .im-l2-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.im-look2 .im-l2-pricing {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 12px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(110deg, rgba(224, 68, 110, 0.9), rgba(216, 163, 94, 0.9)); color: #fff;
  box-shadow: 0 8px 24px rgba(224, 68, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.im-look2 .im-l2-pricing span { font-size: 0.86rem; font-weight: 600; }
.im-look2 .im-l2-pricing b { font-size: 0.66rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(20, 8, 12, 0.35); white-space: nowrap; }
.im-look2 .im-l2-user { position: relative; }
.im-look2 .im-l2-me {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid transparent; background: transparent; color: #f4e9e4; font-family: inherit;
}
.im-look2 .im-l2-me:hover, .im-look2 .im-l2-me[aria-expanded="true"] { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.im-look2 .im-l2-av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #2a2226; font-weight: 700; font-size: 0.9rem; }
.im-look2 .im-l2-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.im-look2 .im-l2-who b { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-look2 .im-l2-who small { font-size: 0.72rem; color: rgba(244, 233, 228, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-look2 .im-l2-me svg { color: rgba(244, 233, 228, 0.5); flex: none; }
.im-look2 .im-l2-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; padding: 6px; border-radius: 12px;
  background: #1a1317; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.im-look2 .im-l2-menu[hidden] { display: none; }
.im-look2 .im-l2-menu .im-sb-item .im-sb-item-icon { background: transparent; box-shadow: none; color: #d9cfca; }
.im-look2 .im-sb-copy { display: none; }
.im-look2 .im-sb-nav [hidden] { display: none !important; }

/* Folded rail: tiles only. */
.im-look2.im-sb-collapsed .im-l2-group { display: block; width: 24px; height: 1px; margin: 10px auto; overflow: hidden; color: transparent; background: rgba(255, 255, 255, 0.08); }
.im-look2.im-sb-collapsed .im-sb-item { width: 44px; padding: 7px 0; }
.im-look2.im-sb-collapsed .im-l2-pricing { justify-content: center; padding: 9px 0; width: 44px; margin: 0 auto; }
.im-look2.im-sb-collapsed .im-l2-pricing b { display: none; }
.im-look2.im-sb-collapsed .im-l2-pricing span { font-size: 0; }
.im-look2.im-sb-collapsed .im-l2-pricing span::before { content: "₹"; font-size: 0.9rem; }
.im-look2.im-sb-collapsed .im-l2-me { justify-content: center; width: 50px; margin: 0 auto; }
.im-look2.im-sb-collapsed .im-l2-who, .im-look2.im-sb-collapsed .im-l2-me svg { display: none; }
.im-look2.im-sb-collapsed .im-l2-menu { left: 0; right: auto; width: 180px; }

/* ── Agent Mithu ─────────────────────────────────────────────────────────── */
/* Conversations: the page's own drawer at every width, opened from "Chats". */
@media (min-width: 1024px) {
  .im-look2.im-agent .im-layout { grid-template-columns: 232px 1fr; }
  .im-look2.im-agent.im-sb-collapsed .im-layout { grid-template-columns: 68px 1fr; }
}
@media (min-width: 1024px) and (max-width: 1120px) {
  .im-look2.im-agent .im-layout { grid-template-columns: 208px 1fr; }
}
.im-look2.im-agent .im-chats {
  position: fixed; z-index: 75; top: 0; bottom: 0; right: 0; left: auto; height: auto;
  width: min(320px, 86vw); background: #0f0c0e; border-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
  transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.im-look2.im-chats-open .im-chats { transform: none; }
.im-look2.im-chats-open .im-chats-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(5, 2, 4, 0.55); }
.im-look2.im-agent .im-chats-toggle {
  display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 60; top: 16px; right: 18px;
  width: auto; height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(15, 12, 14, 0.85); color: #f4e9e4;
  font: 600 0.82rem 'Inter', system-ui, sans-serif; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.im-look2.im-agent .im-chats-toggle::after { content: "Chats"; }
.im-look2.im-agent .im-chats-toggle:hover { border-color: rgba(216, 163, 94, 0.5); }

/* The introduction: the Studio's headline voice, a fan of moments. */
.im-look2 .im-l2-intro { text-align: center; margin: clamp(8px, 4vh, 56px) auto 12px; max-width: 900px; padding: 0; }   /* base.css pads every <section> 120px */
.im-look2.im-agent .im-l2-intro .im-l2-card { width: clamp(108px, 11vw, 160px); }
@media (max-height: 820px) { .im-look2 .im-l2-sub { display: none; } }
.im-look2 .im-l2-intro.is-gone { display: none; }
.im-look2 .im-l2-eyebrow { margin: 0 0 6px; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--im-gold); opacity: 0.85; }
.im-look2 .im-l2-title { margin: 0; font: 600 clamp(1.8rem, 3.8vw, 3rem)/1.06 'Inter', system-ui, sans-serif; letter-spacing: -0.035em; color: #f6eee8; text-wrap: balance; }
.im-look2 .im-l2-title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--im-gold); letter-spacing: 0; }
.im-look2 .im-l2-sub { margin: 10px auto 0; max-width: 52ch; font-size: 0.92rem; line-height: 1.5; color: rgba(244, 233, 228, 0.55); }
.im-look2 .im-l2-intro .im-l2-fan { padding-top: 34px; }

/* Mithu's page has its own banner line ("Think it through with Mithu"), shown
   while the page loads and hidden once the conversation starts — a flicker.
   The introduction carries the headline, so the banner never shows here. */
.im-look2.im-l2-mithu #imBanner { display: none !important; }

/* Not a member: one clear card in place of the greeting; the box greyed out. */
.im-look2.im-l2-locked .im-turn:has(.is-greet [data-join]) { display: none; }
.im-look2 .im-l2-upgrade {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: min(760px, 100%); margin: 8px auto 0; padding: 14px 16px;
  border-radius: 18px; background: linear-gradient(120deg, rgba(224, 68, 110, 0.12), rgba(216, 163, 94, 0.1));
  border: 1px solid rgba(216, 163, 94, 0.3);
}
.im-look2 .im-l2-upgrade img { flex: none; width: 40px; height: 40px; }
.im-look2 .im-l2-upgrade div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.im-look2 .im-l2-upgrade b { font-size: 0.95rem; color: #f6eee8; }
.im-look2 .im-l2-upgrade span { font-size: 0.82rem; color: rgba(244, 233, 228, 0.65); line-height: 1.4; }
.im-look2 .im-l2-up-go {
  flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #b02a4e 0%, #e0446e 50%, #d8a35e 100%); font: 700 0.86rem 'Inter', system-ui, sans-serif;
  box-shadow: 0 4px 18px rgba(224, 68, 110, 0.35);
}
.im-look2 .im-l2-up-own { flex: none; font-size: 0.82rem; color: rgba(244, 233, 228, 0.7); text-decoration: underline; text-underline-offset: 3px; }
.im-look2.im-l2-locked .im-comp-ring { opacity: 0.45; filter: grayscale(0.5); pointer-events: none; }
.im-look2.im-l2-locked .im-comp-ring::before, .im-look2.im-l2-locked .im-comp-ring::after { animation: none; opacity: 0.25; }
@media (max-width: 740px) {
  .im-look2 .im-l2-upgrade { gap: 10px; }
  .im-look2 .im-l2-up-go { flex: 1; }
}

/* ── A Studio tool on its own page (Nikhaar), inside the Studio's sidebar
   (studio-shell.js). Phones keep the page's own top bar. ─────────────────── */
@media (min-width: 1024px) {               /* polish.css hides the sidebar below 1024px; the top bar stays there */
  .im-look2.im-l2-tool .kz-nav { display: none; }
  .im-look2.im-l2-tool .nk-main { max-width: none; margin: 0; padding: 28px clamp(20px, 3vw, 40px) 40px; min-width: 0; }
}
.im-look2.im-l2-tool { background: #0e0b0d; }
.im-look2.im-l2-tool .im-l2-shell { min-height: 100vh; }
.im-look2 .nk-head { text-align: center; margin: clamp(8px, 3vh, 32px) 0 clamp(16px, 3vh, 28px); }
.im-look2 .nk-title { margin: 0 0 6px; font: 600 0.8rem 'Inter', system-ui, sans-serif; letter-spacing: 0.08em; color: var(--im-gold, #d8a35e); }
.im-look2 .nk-title-dev { font-size: 0.8rem; opacity: 0.85; margin-left: 6px; }
.im-look2 .nk-sub { margin: 0; font: 600 clamp(1.8rem, 3.8vw, 3rem)/1.06 'Inter', system-ui, sans-serif; letter-spacing: -0.035em; color: #f6eee8; }
.im-look2 .nk-sub em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--im-gold, #d8a35e); letter-spacing: 0; }

/* Nikhaar, before a picture is chosen: the stage stands out, as the Studio's
   composer does — a turning gold-and-violet ring round a warm drifting wash —
   and is shorter, since it holds only the two buttons. */
@property --l2-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.im-look2 .nk-stage:has(#nkPick:not([hidden])) {
  height: min(56vh, 540px); border-color: transparent; border-radius: 22px; isolation: isolate;
  background: linear-gradient(120deg, #1c0f19, #2e1426, #1d1533, #2a1320, #1c0f19);
  background-size: 300% 300%; animation: l2-wash 14s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 70px rgba(224, 68, 110, 0.12);
}
.im-look2 .nk-stage:has(#nkPick:not([hidden]))::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--l2-a), transparent 0 55%, rgba(216, 163, 94, 0.95) 70%, rgba(150, 120, 255, 0.95) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: l2-spin 6s linear infinite;
}
.im-look2 .nk-stage:has(#nkPick:not([hidden])) .nk-stage-msg { color: rgba(244, 233, 228, 0.86); font-size: 0.98rem; }
/* The before/after fan (studio-shell.js), shown only while the stage is empty. */
@property --l2-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.im-look2 .im-l2-nkfan { display: none; }
.im-look2 .nk-stage:has(#nkPick:not([hidden])) .im-l2-nkfan {
  display: flex; justify-content: center; position: absolute; left: 0; right: 0; top: 9%; z-index: 2;
}
.im-look2 .nk-stage:has(#nkPick:not([hidden])) .nk-stage-msg { top: 64%; }
.im-look2 .nk-stage:has(#nkPick:not([hidden])) .nk-pick { top: calc(64% + 46px); }
.im-look2 .im-l2-nkcard {
  position: relative; flex: none; width: clamp(96px, 11vw, 148px); aspect-ratio: 3 / 4; margin: 0 -10px; border-radius: 14px; overflow: hidden;
  transform: rotate(calc((var(--k) - 1.5) * 5deg)) translateY(calc(var(--d) * 8px)); z-index: calc(3 - var(--d));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
  animation: l2-nksweep 5s ease-in-out infinite; animation-delay: calc(var(--k) * -1.2s);
}
.im-look2 .im-l2-nkcard:hover { transform: rotate(0) translateY(-10px) scale(1.06); z-index: 5; }
.im-look2 .im-l2-nkcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.im-look2 .im-l2-nkcard .im-l2-nkbefore { clip-path: inset(0 calc(100% - var(--l2-x)) 0 0); }
.im-look2 .im-l2-nkcard i { position: absolute; top: 0; bottom: 0; left: var(--l2-x); width: 2px; background: #f3d7a6; box-shadow: 0 0 12px rgba(243, 215, 166, 0.8); }
.im-look2 .im-l2-nkcard b { position: absolute; bottom: 7px; font: 700 0.58rem 'Inter', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; background: rgba(10, 6, 8, 0.7); color: #f4e9e4; }
.im-look2 .im-l2-nkcard b:first-of-type { left: 7px; }
.im-look2 .im-l2-nkcard b:last-of-type { right: 7px; color: #f3d7a6; }
@keyframes l2-nksweep { 0%, 100% { --l2-x: 15%; } 50% { --l2-x: 85%; } }
@media (prefers-reduced-motion: reduce) { .im-look2 .im-l2-nkcard { animation: none; } }

@media (max-width: 740px) {
  .im-look2 .nk-stage:has(#nkPick:not([hidden])) .im-l2-nkcard:nth-child(4) { display: none; }
  .im-look2 .nk-stage:has(#nkPick:not([hidden])) .nk-stage-msg { top: 60%; font-size: 0.9rem; }
  .im-look2 .nk-stage:has(#nkPick:not([hidden])) .nk-pick { top: calc(60% + 74px); }
}
@keyframes l2-spin { to { --l2-a: 360deg; } }
@keyframes l2-wash { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .im-look2 .nk-stage:has(#nkPick:not([hidden])), .im-look2 .nk-stage:has(#nkPick:not([hidden]))::before { animation: none; }
}

/* Phones: the drawer is the full sidebar, on the same near-black. */
@media (max-width: 740px) {
  .im-look2.im-mob-open .im-sidebar { background: #0b090a; padding: 22px 12px 14px; }
  .im-look2.im-mob-open .im-l2-group { display: block; width: auto; height: auto; margin: 16px 10px 5px; color: rgba(244, 233, 228, 0.38); background: none; }
  .im-look2 .im-l2-dock .im-quality-bar { gap: 6px 14px; }
  .im-look2 #imInsRecentWrap:not(.is-open) .im-ins-shot:nth-child(n+5) { display: none; }
}

@media (max-width: 740px) {
  .im-look2 .im-l2-card { width: 96px; margin: 0 -12px; }
  .im-look2 .im-l2-card:nth-child(5) { display: none; }
  .im-look2 .im-l2-card span { font-size: 0.7rem; padding: 26px 8px 8px; }
  .im-look2 .kz-ib { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .im-look2 .im-l2-card { animation: none; transition: none; }
}

/* Phones and tablets: a glass top bar holding the mark (imagine-look2.js),
   under the menu button (left) and Mithu's Chats (right), both z 60. */
.im-l2-mbar { display: none; }
@media (max-width: 1023px) {
  .im-look2 .im-l2-mbar {
    display: flex; align-items: center; position: fixed; inset: 0 0 auto; z-index: 55; height: 64px;
    padding: 0 16px 0 66px; pointer-events: none;
    background: rgba(14, 11, 13, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .im-look2 .im-l2-mbar-logo {
    pointer-events: auto; display: inline-flex; align-items: center; gap: 9px;
    font: 700 1.05rem/1 Inter, system-ui, sans-serif; letter-spacing: -0.02em; color: #f6eee8; text-decoration: none;
  }
  .im-look2 .im-l2-mbar-logo::before {
    content: ""; width: 28px; height: 28px; border-radius: 8px; flex: none;
    background: url('/public/img/mithu/mithu-face.svg?v=f1') center / 20px no-repeat, linear-gradient(140deg, #f3c56b, #e0446e);
  }
  .im-look2 .im-mob-menu, .im-look2 .im-chats-toggle { top: 11px !important; }
  .im-look2 .im-page { padding-top: 76px !important; }
  body.im-look2.im-mob-open .im-l2-mbar { display: none; }
}
