.mvp-dashboard {
  --mvp-field-height: 44px;
  --mvp-field-bg: #0f0f13;
  --mvp-field-border: #45404b;
  --mvp-panel-bg: #17161c;
  --mvp-muted: #aaa4b1;
  display: grid;
  gap: 16px;
}
.mvp-link-row, .mvp-toolbar, .mvp-copy-row, .mvp-field-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mvp-link-row .mvp-link { flex: 1 1 420px; min-width: 0; color: #a7a2b4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  align-items: end;
  padding: 14px;
  border: 1px solid #3a3542;
  border-radius: 12px;
  background: #18171d;
}
.mvp-toolbar > label { grid-column: 1 / -1; }
.mvp-toolbar label, .mvp-control label { color: var(--mvp-muted); font-size: 12px; line-height: 1.45; }
.mvp-toolbar select, .mvp-toolbar input, .mvp-control select, .mvp-control input[type="text"], .mvp-control input[type="search"] {
  width: 100%; min-width: 0; min-height: var(--mvp-field-height); border: 1px solid var(--mvp-field-border); border-radius: 9px; background-color: var(--mvp-field-bg); color: #fff; padding: 9px 11px;
}
.mvp-slot-select { min-width: 0; }
.mvp-label-input { flex: 1 1 190px; }
.mvp-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.mvp-layout > * { min-width: 0; }
.mvp-panel { min-width: 0; border: 1px solid #37333e; border-radius: 14px; background: var(--mvp-panel-bg); padding: 16px; }
.mvp-panel-title { margin: 0 0 4px; color: #fff; font-size: 15px; }
.mvp-panel-help { margin: 0 0 14px; color: #8f8998; font-size: 12px; line-height: 1.55; }
.mvp-viewer-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mvp-viewer-search, .mvp-viewer-sort, .mvp-copy-row select {
  width: 100%; min-width: 0; min-height: var(--mvp-field-height); border: 1px solid var(--mvp-field-border); border-radius: 9px; background-color: var(--mvp-field-bg); color: #fff; padding: 9px 11px;
}
.mvp-viewer-sort { min-width: 132px; }
.mvp-viewer-results { display: grid; gap: 7px; margin-top: 9px; max-height: 310px; overflow: auto; scrollbar-width: thin; }
.mvp-viewer-option { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; text-align: left; border: 1px solid #393540; border-radius: 10px; padding: 7px; color: #fff; background: #111116; cursor: pointer; }
.mvp-viewer-option:hover, .mvp-viewer-option.is-selected { border-color: #ff477e; background: #2a1922; }
.mvp-viewer-option img, .mvp-viewer-option .mvp-mini-fallback { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #39343f; display: grid; place-items: center; font-weight: 800; }
.mvp-viewer-meta { min-width: 0; }
.mvp-viewer-meta strong, .mvp-viewer-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp-viewer-meta span { margin-top: 2px; color: #8e8997; font-size: 11px; }
.mvp-viewer-coins { color: #ffd166; font-size: 12px; white-space: nowrap; }
.mvp-empty { color: #8f8998; font-size: 12px; padding: 18px 8px; text-align: center; border: 1px dashed #393540; border-radius: 10px; }
.mvp-skeleton { display: grid; grid-template-columns: 42px 1fr 60px; align-items: center; gap: 10px; padding: 7px; border: 1px solid #2b2730; border-radius: 10px; background: #111116; }
.mvp-skeleton-avatar, .mvp-skeleton-line, .mvp-skeleton-coins { background: linear-gradient(90deg, #1e1c24 25%, #2a2631 50%, #1e1c24 75%); background-size: 200% 100%; animation: mvp-shimmer 1.2s infinite; }
.mvp-skeleton-avatar { width: 42px; height: 42px; border-radius: 50%; }
.mvp-skeleton-line { height: 10px; border-radius: 6px; }
.mvp-skeleton-line.short { width: 55%; margin-top: 6px; height: 8px; opacity: .7; }
.mvp-skeleton-coins { width: 46px; height: 12px; border-radius: 6px; }
@keyframes mvp-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.mvp-sentinel { height: 1px; }
.mvp-load-more { width: 100%; margin-top: 8px; }
.mvp-preview-box { position: relative; overflow: hidden; border: 1px solid #3b3742; border-radius: 12px; background: #111116; aspect-ratio: 16 / 9; min-height: 260px; }
.mvp-preview-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.mvp-frame-title { margin-top: 17px; }
.mvp-frame-grid { display: grid; grid-template-columns: repeat(4, minmax(58px, 1fr)); gap: 8px; margin-top: 10px; }
.mvp-frame-choice { position: relative; min-width: 0; min-height: 88px; border: 1px solid #403a47; border-radius: 10px; background: #111116; color: #aaa4b1; padding: 6px 4px; cursor: pointer; }
.mvp-frame-choice img { width: 56px; height: 56px; display: block; object-fit: contain; margin: 0 auto 2px; }
.mvp-frame-choice .mvp-no-frame { width: 48px; height: 48px; margin: 4px auto 6px; display: grid; place-items: center; border: 2px solid #777180; border-radius: 50%; font-size: 25px; }
.mvp-frame-choice span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.mvp-frame-choice.is-selected { border-color: #ff477e; box-shadow: 0 0 0 1px #ff477e inset; color: #fff; }
.mvp-frame-choice:disabled { opacity: .45; cursor: not-allowed; }
.mvp-lock { position: absolute; top: 4px; right: 4px; padding: 1px 4px; border-radius: 999px; background: #473615; color: #ffd166; font-size: 8px; }
.mvp-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #34303a;
  border-radius: 12px;
  background: #121117;
}
.mvp-control { display: grid; gap: 6px; min-width: 0; }
.mvp-control-wide { grid-column: 1 / -1; }
.mvp-control > label { min-height: 18px; display: flex; align-items: flex-end; }
.mvp-range-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: center; gap: 10px; min-height: 34px; }
.mvp-range-row input { width: 100%; accent-color: #ff477e; }
.mvp-range-value { color: #d8d3df; font-size: 12px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.mvp-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: var(--mvp-field-height);
  padding: 9px 11px;
  border: 1px solid #3d3944;
  border-radius: 9px;
  background: #18171d;
  color: #eeeaf2;
  line-height: 1.35;
  cursor: pointer;
}
.mvp-check input { width: 18px; height: 18px; accent-color: #ff477e; }
.mvp-color { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; min-height: var(--mvp-field-height); padding: 0 10px 0 0; border: 1px solid var(--mvp-field-border); border-radius: 9px; background: var(--mvp-field-bg); }
.mvp-color input { width: 46px; height: 42px; padding: 3px; border: 0; border-right: 1px solid var(--mvp-field-border); border-radius: 8px 0 0 8px; background: var(--mvp-field-bg); }
.mvp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 15px; border-top: 1px solid #34303a; }
.mvp-save {
  min-width: 190px;
  min-height: 46px;
  margin-left: 6px;
  padding: 11px 24px !important;
  border: 1px solid #ff7aa5 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #ff477e 0%, #f52267 58%, #d91358 100%) !important;
  box-shadow: 0 8px 22px rgba(245, 34, 103, .24), inset 0 1px rgba(255,255,255,.22);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.mvp-save:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 11px 28px rgba(245, 34, 103, .34), inset 0 1px rgba(255,255,255,.26);
}
.mvp-save:focus-visible { outline: 3px solid rgba(255, 122, 165, .34); outline-offset: 3px; }
.mvp-save.is-dirty { box-shadow: 0 0 0 2px rgba(255, 122, 165, .3), 0 10px 26px rgba(245, 34, 103, .32); }
.mvp-save.is-saving, .mvp-save:disabled { cursor: wait; opacity: .72; transform: none; filter: saturate(.7); }
.mvp-status { flex: 1 1 100%; margin-right: auto; color: #8f8998; font-size: 11px; line-height: 1.45; }
.mvp-status.is-error { color: #ff839f; }
.mvp-status.is-ok { color: #72edbd; }
.mvp-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 15px 0; }
.mvp-copy-row select { min-width: 0; }
.mvp-copy-row button, .mvp-actions > button:not(.mvp-save) { min-height: var(--mvp-field-height); padding-inline: 14px; }
.mvp-dashboard :is(input, select, button):focus-visible { outline: 3px solid rgba(255, 71, 126, .32); outline-offset: 2px; }
.mvp-dashboard :is(input, select):focus-visible { border-color: #ff6c99; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-link-row { min-width: 0; overflow: hidden; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-slot-select,
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-label-input { width: 100%; min-width: 0; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-layout { grid-template-columns: 1fr; gap: 12px; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-panel { padding: 13px; border-radius: 10px; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-viewer-results { max-height: 230px; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-frame-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-frame-choice { min-height: 80px; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-frame-choice img { width: 50px; height: 50px; }
.dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-preview-box:empty { display: none; }
@media (max-width: 620px) {
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-toolbar,
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-viewer-tools,
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-controls { grid-template-columns: 1fr; }
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-frame-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-control-wide { grid-column: auto; }
  .dashboard-studio-active .mvp-dashboard.studio-widget-selected .mvp-copy-row { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .mvp-layout { grid-template-columns: 1fr; }
  .mvp-preview-box { min-height: 230px; }
}
@media (max-width: 560px) {
  .mvp-viewer-tools { grid-template-columns: 1fr; }
  .mvp-frame-grid { grid-template-columns: repeat(3, minmax(58px, 1fr)); }
  .mvp-controls { grid-template-columns: 1fr; }
  .mvp-control-wide { grid-column: auto; }
  .mvp-copy-row { grid-template-columns: 1fr; }
  .mvp-copy-row button { width: 100%; }
  .mvp-save { width: 100%; margin-left: 0; }
}
