/* Живая панель приложения на странице. Все правила под .panel — чтобы не сталкиваться
   с классами сайта (.card, .row, .title и т. п.). Базовый размер 340 pt, как в приложении. */

.panel {
  --amber: #EF9F27;
  --amber-text: #E9A23B;
  --amber-ink: #412402;
  --p-text: #EDEDED;
  --p-secondary: rgba(235, 235, 235, .6);
  --p-hairline: rgba(255, 255, 255, .08);
  --p-fill: rgba(255, 255, 255, .075);

  width: 340px;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(42, 42, 40, .92), rgba(30, 30, 29, .95));
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .95), 0 0 0 .5px rgba(255, 255, 255, .10) inset;
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--p-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.panel *, .panel *::before, .panel *::after { box-sizing: border-box; }

/* главный экран */
.panel .cup {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.panel .cup canvas { display: block; width: 100%; height: 100%; }
.panel .cup:focus-visible { outline: 2px solid var(--amber); outline-offset: -8px; border-radius: 14px; }

.panel .title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-align: center;
  color: var(--amber-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: 4px;
}
.panel .title.is-off { color: var(--p-text); }
.panel .sub { font-size: 12px; color: var(--p-secondary); text-align: center; margin-top: 3px; }

.panel .more {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .07);
  color: var(--p-secondary);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  cursor: pointer;
}
.panel .more:hover { background: rgba(255, 255, 255, .13); }

/* настройки */
.panel .tabsrow { display: flex; gap: 8px; align-items: flex-start; }
.panel .tabs {
  display: flex;
  flex: 1;
  gap: 2px;
  padding: 3px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: .5px solid var(--p-hairline);
}
.panel .tab {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--p-secondary);
  font-family: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.panel .tab.is-active {
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(239, 159, 39, .35), 0 0 0 .5px rgba(255, 255, 255, .25) inset;
}
.panel .tab:not(.is-active):hover { color: var(--p-text); }

.panel .close {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--p-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.panel .close svg { width: 13px; height: 13px; }
.panel .close:hover { background: rgba(255, 255, 255, .13); }

.panel .card {
  margin-top: 8px;
  border-radius: 20px;
  background: var(--p-fill);
  border: .5px solid var(--p-hairline);
  padding: 0 16px;
}
.panel .row {
  display: grid;
  grid-template-columns: 17px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 0;
  border: 0;
  padding: 0;
}
.panel .row.app { grid-template-columns: 22px 1fr auto; }
.panel .row .icon { width: 17px; height: 17px; flex: 0 0 17px; color: rgba(235, 235, 235, .55); }
.panel .row .icon svg { width: 17px; height: 17px; display: block; }
.panel .row .txt { display: flex; flex-direction: column; min-width: 0; order: 0; }
.panel .row .name { font-size: 12.5px; line-height: 1.25; }
.panel .row .hint { font-size: 10.5px; color: var(--p-secondary); margin-top: 1px; line-height: 1.2; }
.panel .row .hint.is-running { color: #3FD07A; }
.panel .row .ctrl { justify-self: end; }

.panel .sw {
  width: 44px;
  height: 20px;
  border: 0;
  border-radius: 10px;
  background: rgba(235, 235, 235, .40);
  position: relative;
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}
.panel .sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  transition: transform .2s cubic-bezier(.32, .72, 0, 1);
}
.panel .sw[aria-checked="true"] { background: var(--amber); }
.panel .sw[aria-checked="true"]::after { transform: translateX(24px); }
.panel .sw:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.panel .pill {
  min-width: 44px;
  height: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
  white-space: nowrap;
}

.panel .row.app .appicon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.panel .appicon.claude { background: rgba(217, 119, 87, .22); color: #E08A6A; }
.panel .appicon.gpt { background: rgba(255, 255, 255, .12); color: #EDEDED; }
.panel .appicon.gemini { background: rgba(96, 133, 255, .2); color: #8FA6FF; }
.panel .appicon.dsh { background: rgba(233, 167, 91, .2); color: var(--amber-text); }


.panel .footnote { margin-top: 8px; font-size: 11px; color: rgba(235, 235, 235, .5); padding: 0 4px; }
.panel .footnote.center { text-align: center; }

.panel .card.about { padding: 4px 16px; }
.panel .about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  font-size: 12px;
}
.panel .about-row + .about-row { border-top: .5px solid rgba(255, 255, 255, .06); }
.panel .about-row .name { color: var(--p-secondary); }
.panel .about-row .value { font-variant-numeric: tabular-nums; }

/* масштаб панелей на странице */
.hero-stage .panelwrap { zoom: 1.6; display: flex; justify-content: center; padding: 34px 0 8px; }
.shotcard .panelwrap { zoom: 1.3; display: flex; justify-content: center; padding: 8px 0; }

@media (max-width: 900px) {
  .hero-stage .panelwrap { zoom: 1.15; padding: 22px 0 6px; }
  .shotcard .panelwrap { zoom: 1; }
}
@media (max-width: 560px) {
  .hero-stage .panelwrap { zoom: .94; padding: 16px 0 4px; }
  .shotcard .panelwrap { zoom: .88; }
}
