/* «Внешность агента» — screens/agent-look.js (r32, перенесено из СКД · Платформы, css/screens/pf-look.css, раунд 20): the stage with the whole character on the left, lit in its own colour
   (--t1 light, --t2 main, --t3 deep), the tabs of «Токены» and the tiles on the right (only the tiles scroll). Every tile
   already shows the agent with that choice. Light and dark. Prefix .lk-. */
.sheet.lk-sheet { width: min(1120px, 100%); height: min(760px, calc(100vh - 48px)); }
.lk-sheet .sb { display: flex; padding: 0; gap: 0; overflow: hidden; }
.lk { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(280px, 372px) minmax(0, 1fr); }

/* the stage */
.lk-stage { position: relative; min-height: 0; border-right: 1px solid var(--line); overflow: hidden; }
.lk-stage-in { --t1: #e2d6ff; --t2: #9070f6; --t3: #5b37d6; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 24px 22px 20px;
  background: radial-gradient(80% 55% at 50% 72%, color-mix(in srgb, var(--t1) 90%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--t1) 30%, var(--l1)) 0%, color-mix(in srgb, var(--t1) 55%, var(--l1)) 100%);
  transition: background .4s; }
.lk-light { position: absolute; left: 50%; top: 46%; z-index: -1; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--t2) 40%, transparent) 60deg, transparent 130deg, color-mix(in srgb, var(--t1) 70%, transparent) 220deg, transparent 300deg);
  filter: blur(34px); animation: lk-spin 18s linear infinite; }
@keyframes lk-spin { to { transform: rotate(360deg); } }
.lk-who { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; max-width: 100%; }
.lk-who b { font-size: 19px; font-weight: 700; letter-spacing: -.014em; color: var(--ink); }
.lk-who span { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lk-big { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1 1 auto; min-height: 0; width: 100%; padding: 10px 0 18px; }
.lk-big > .bot { width: min(250px, 78%); max-height: 100%; }
.lk-big > .bot > .bot-svg { max-height: 100%; }
.lk-floor { position: absolute; left: 50%; bottom: 14px; width: 220px; height: 30px; margin-left: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--t2) 40%, transparent), transparent); }
.lk-big.is-pop > .bot { animation: lk-pop .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes lk-pop { 0% { transform: scale(.94) translateY(6px); } 100% { transform: none; } }
.lk-mini { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 14px; background: color-mix(in srgb, var(--l1) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--l1) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lk-mini > span { display: flex; align-items: center; gap: 8px; }
.lk-mini em { font-style: normal; font-size: 12px; color: var(--mut); }
.lk-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.lk-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 580; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--l1) 82%, transparent); border: 1px solid color-mix(in srgb, var(--t2) 18%, var(--line)); transition: background .18s, border-color .18s, transform .16s; }
.lk-pill:hover:not(:disabled) { background: var(--l1); border-color: color-mix(in srgb, var(--t2) 45%, var(--line)); }
.lk-pill:active:not(:disabled) { transform: scale(.97); }
.lk-pill:disabled { opacity: .45; cursor: default; }

/* the side */
.lk-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lk-h { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 14px 26px; }
.lk-h > div { flex: 1 1 auto; min-width: 0; }
.lk-k { font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-off, #99a6b9); }
.lk-h h3 { margin: 2px 0 0; font-size: 21px; font-weight: 680; letter-spacing: -.018em; color: var(--ink); }
.lk-tabs { margin: 0 22px 0 26px; align-self: flex-start; max-width: calc(100% - 48px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tabs .tab { flex: 0 0 auto; gap: 6px; padding: 0 11px; }
.lk-pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 22px 26px; scrollbar-width: thin; }
.lk-g + .lk-g { margin-top: 22px; }
.lk-g h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-off, #99a6b9); }
.lk-g h4 span { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mut); }
/* tiles */
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.lk-grid.is-sm { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.lk-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 8px 9px; border-radius: 16px; cursor: pointer; font: inherit;
  background: var(--l2); border: 1px solid var(--line); transition: background .18s, border-color .18s, box-shadow .25s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.lk-t:hover { background: var(--l1); border-color: var(--acc-soft-brd); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(60, 30, 140, .5); }
.lk-t:active { transform: scale(.98); }
.lk-t.is-on { background: var(--l1); border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent), 0 10px 22px -16px rgba(60, 30, 140, .55); }
.lk-t-f { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 84px; }
.lk-t-f > .bot { width: 86px; }
.lk-t.is-full .lk-t-f > .bot { width: 70px; }
.lk-t.is-sm .lk-t-f { height: 66px; align-items: center; }
.lk-t b { font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25; }
.lk-t-ok { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--acc); }
.lk-t .bot-fig { animation: none; }
/* swatches */
.lk-sws { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.lk-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 6px 0 4px; border: 0; border-radius: 14px; background: none; cursor: pointer; font: inherit; }
.lk-sw-c { position: relative; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .12), 0 6px 14px -8px var(--ring, rgba(60, 30, 140, .6));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.lk-sws.is-sm .lk-sw-c { width: 36px; height: 36px; }
.lk-sw:hover .lk-sw-c { transform: scale(1.07); }
.lk-sw.is-on .lk-sw-c { box-shadow: 0 0 0 3px var(--l1), 0 0 0 5px var(--acc), 0 8px 18px -8px var(--ring, rgba(60, 30, 140, .6)); }
.lk-sw em { font-style: normal; font-size: 12px; color: var(--mut); text-align: center; line-height: 1.2; }
.lk-sw.is-on em { color: var(--ink); font-weight: 600; }
/* badges */
.lk-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.lk-b { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit;
  transition: background .18s, border-color .18s; }
.lk-b:hover { background: var(--l2); }
.lk-b.is-on { background: var(--l1); border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent); }
/* значок — тёмное стекло экрана лица с подсвеченным знаком (как .gx платформы) */
.lk-gx { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: #d6c8ff; font-style: normal;
  background: radial-gradient(120% 95% at 28% 8%, #3b3374 0%, #1c1742 52%, #0f0c26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 14px -8px rgba(40, 20, 110, .55); }
.lk-gx svg { filter: drop-shadow(0 0 3px rgba(214, 200, 255, .8)); }
.lk-b em { font-style: normal; font-size: 11.5px; color: var(--mut); }
.lk-b.is-on em { color: var(--ink); font-weight: 600; }
.lk-foot-n { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lk-stage-in { background: radial-gradient(80% 55% at 50% 72%, color-mix(in srgb, var(--t2) 30%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--t3) 18%, var(--l1)), color-mix(in srgb, var(--t3) 30%, var(--l1))); }
}
:root[data-theme="dark"] .lk-stage-in { background: radial-gradient(80% 55% at 50% 72%, color-mix(in srgb, var(--t2) 30%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--t3) 18%, var(--l1)), color-mix(in srgb, var(--t3) 30%, var(--l1))); }

@media (max-width: 860px) {
  .sheet.lk-sheet { height: auto; }
  .lk { grid-template-columns: minmax(0, 1fr); }
  .lk-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .lk-big { height: 260px; flex: 0 0 auto; }
  .lk-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .lk-foot-n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lk-light, .lk-big.is-pop > .bot { animation: none !important; }
  .lk-t, .lk-sw-c, .lk-pill { transition: none !important; }
}
