body.minus-web {
  background: #eef2f5;
}

/* Minus Cloud web polish: one calm product shell without touching editor logic. */
body.minus-web {
  --web-bg: #eef3f7;
  --web-surface: #ffffff;
  --web-surface-soft: #f7fafc;
  --web-line: #dbe4ee;
  --web-line-soft: #edf2f7;
  --web-text: #111827;
  --web-muted: #64748b;
  --web-accent: #2563eb;
  --web-accent-soft: #eff6ff;
  --web-danger: #dc2626;
  background:
    radial-gradient(circle at 16% -10%, rgba(219, 234, 254, .72), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--web-bg) 42%, #edf2f7 100%);
  color: var(--web-text);
  text-rendering: geometricPrecision;
}

body.minus-web * {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

body.minus-web *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.minus-web *::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: content-box;
}

body.minus-web *::-webkit-scrollbar-track {
  background: transparent;
}

body.minus-web .desktop-titlebar {
  min-height: 60px;
  padding: 9px 16px;
  border-bottom-color: rgba(219, 228, 238, .92);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .025);
}

body.minus-web .desktop-app-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

body.minus-web .desktop-app-name {
  font-weight: 900;
  letter-spacing: -.02em;
}

body.minus-web #desktopFileMenu,
body.minus-web #desktopEditMenu,
body.minus-web #desktopViewMenu {
  display: none !important;
}

body.minus-web .desktop-menu-launch,
body.minus-web .desktop-mode-btn,
body.minus-web .desktop-panel-toggle,
body.minus-web .desktop-menu > summary {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--web-line);
  background: rgba(255, 255, 255, .92);
  color: #334155;
  font-weight: 850;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

body.minus-web .desktop-menu-launch:hover,
body.minus-web .desktop-mode-btn:hover,
body.minus-web .desktop-panel-toggle:hover,
body.minus-web .desktop-menu > summary:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-1px);
}

body.minus-web .desktop-mode-btn.is-active,
body.minus-web .desktop-panel-toggle.is-active,
body.minus-web .desktop-publish-launch {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

body.minus-web .desktop-menu-panel {
  min-width: 238px;
  padding: 8px;
  border: 1px solid rgba(219, 228, 238, .96);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
}

body.minus-web .desktop-menu-action {
  min-height: 38px;
  border-radius: 11px;
  color: #334155;
  font-weight: 800;
}

body.minus-web .desktop-menu-action:hover {
  background: var(--web-accent-soft);
  color: var(--web-accent);
}

body.minus-web #appShell,
body.minus-web .workspace-v3-grid {
  background: transparent;
}

body.minus-web .panel.left,
body.minus-web .panel.right {
  border-color: rgba(219, 228, 238, .96) !important;
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(12px);
}

body.minus-web .left-head,
body.minus-web .right-panel-scroll {
  background: transparent !important;
}

body.minus-web .left-head {
  padding: 15px 14px 13px;
  border-bottom: 1px solid var(--web-line-soft);
}

body.minus-web .section-heading,
body.minus-web .right-panel-title,
body.minus-web .title {
  color: var(--web-text);
  letter-spacing: -.025em;
}

body.minus-web .section-caption,
body.minus-web .inspector-subhead,
body.minus-web .title-subline {
  color: var(--web-muted);
}

body.minus-web .center {
  background:
    linear-gradient(rgba(226, 232, 240, .34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, .34) 1px, transparent 1px),
    transparent;
  background-size: 32px 32px, 32px 32px, auto;
}

body.minus-web .topbar.clean-topbar {
  min-height: 62px;
  border-bottom-color: rgba(219, 228, 238, .94);
  background: rgba(248, 250, 252, .82);
  backdrop-filter: blur(10px);
}

body.minus-web .scene-card,
body.minus-web .block-card,
body.minus-web .inspector-card,
body.minus-web .editor-disclosure,
body.minus-web .object-scene-toolbar,
body.minus-web .frame-toolbar,
body.minus-web .blocks-toolbar {
  border-color: var(--web-line-soft) !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: none !important;
}

body.minus-web .scene-card:hover,
body.minus-web .block-card:hover {
  border-color: #bfdbfe !important;
  background: #ffffff !important;
}

body.minus-web .scene-card.active,
body.minus-web .scene-card.is-active,
body.minus-web .layer-item.is-active,
body.minus-web .layer-item.selected {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 var(--web-accent) !important;
}

body.minus-web .input,
body.minus-web .textarea,
body.minus-web .select {
  border-color: var(--web-line) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--web-text);
  box-shadow: none !important;
}

body.minus-web .input:focus,
body.minus-web .textarea:focus,
body.minus-web .select:focus,
body.minus-web button:focus-visible,
body.minus-web summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .16) !important;
  outline-offset: 2px;
  border-color: #93c5fd !important;
}

body.minus-web .btn {
  border-radius: 13px;
  font-weight: 850;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

body.minus-web .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.minus-web .btn.primary,
body.minus-web .btn.success,
body.minus-web .web-shell-btn.is-primary {
  border-color: #111827 !important;
  background: #111827 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

body.minus-web .btn.ghost,
body.minus-web .btn.subtle,
body.minus-web .web-shell-btn {
  border-color: var(--web-line) !important;
  background: #ffffff !important;
  color: #334155 !important;
}

body.minus-web .btn.danger {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
  color: var(--web-danger) !important;
}

body.minus-web .modal {
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(7px);
}

body.minus-web .modal-card,
body.minus-web #pickerModal .modal-card,
body.minus-web #templateLibraryModal .modal-card,
body.minus-web #mediaLibraryModal .modal-card,
body.minus-web .cloud-admin-card,
body.minus-web .cloud-access-card {
  max-height: min(86vh, 900px);
  border: 1px solid rgba(219, 228, 238, .96) !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  box-shadow: 0 28px 82px rgba(15, 23, 42, .18) !important;
  overflow: hidden;
}

body.minus-web .modal-head {
  min-height: 62px;
  border-bottom: 1px solid var(--web-line-soft);
  background: rgba(255, 255, 255, .96);
}

body.minus-web .modal-body {
  max-height: calc(min(86vh, 900px) - 72px);
  overflow: auto;
}

body.minus-web .modal-close-icon-btn {
  top: 16px;
  right: 16px;
  border-color: var(--web-line) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

body.minus-web #pickerModal .modal-body,
body.minus-web #templateLibraryModal .modal-body,
body.minus-web #mediaLibraryModal .modal-body {
  background: var(--web-surface-soft);
}

body.minus-web .picker-intro,
body.minus-web .template-library-intro,
body.minus-web .media-library-intro,
body.minus-web .cloud-storage-panel,
body.minus-web .cloud-access-status,
body.minus-web .cloud-access-steps > div,
body.minus-web .cloud-admin-summary > div,
body.minus-web .cloud-admin-row,
body.minus-web .cloud-storage-row,
body.minus-web .cloud-storage-media-row,
body.minus-web .cloud-project-row,
body.minus-web .template-card,
body.minus-web .media-card,
body.minus-web .picker-card {
  border-color: var(--web-line-soft) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .025), 0 14px 34px rgba(15, 23, 42, .045) !important;
}

body.minus-web .picker-card:hover,
body.minus-web .template-card:hover,
body.minus-web .media-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .025), 0 20px 48px rgba(37, 99, 235, .09) !important;
}

body.minus-web .cloud-admin-card {
  width: min(1180px, calc(100vw - 32px));
}

body.minus-web .cloud-storage-summary {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

body.minus-web .cloud-project-row,
body.minus-web .cloud-storage-media-row {
  min-height: 58px;
}

body.minus-web .cloud-admin-actions .btn {
  min-height: 34px;
  padding: 0 11px;
}

body.minus-web .statusbar {
  border-top-color: rgba(219, 228, 238, .96);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
}

@media (max-width: 1180px) {
  body.minus-web .desktop-panel-switch {
    display: none !important;
  }

  body.minus-web .cloud-user-badge {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 900px) {
  body.minus-web .media-library-intro,
  body.minus-web .template-library-intro {
    grid-template-columns: 1fr;
  }

  body.minus-web .media-library-intro-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.minus-web .desktop-titlebar {
    align-items: flex-start;
    padding: 8px 10px;
  }

  body.minus-web .desktop-titlebar-side {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.minus-web .desktop-mode-switch,
  body.minus-web .desktop-menubar {
    flex: 0 0 auto;
  }

  body.minus-web #appShell {
    height: calc(100vh - 112px);
  }

  body.minus-web .modal-card,
  body.minus-web #pickerModal .modal-card,
  body.minus-web #templateLibraryModal .modal-card,
  body.minus-web #mediaLibraryModal .modal-card,
  body.minus-web .cloud-admin-card,
  body.minus-web .cloud-access-card {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 20px !important;
  }

  body.minus-web .modal-body {
    max-height: calc(100vh - 92px);
  }
}

body.minus-web #pickerModal .modal-card {
  width: min(1120px, calc(100vw - 32px));
}

body.minus-web #pickerModal .modal-body {
  background: #f7f9fc;
}

body.minus-web .picker-shell {
  gap: 16px;
}

body.minus-web .picker-intro {
  padding: 18px 20px;
  border: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, rgba(191, 219, 254, .36), transparent 34%), linear-gradient(135deg, #ffffff, #f4f8fd);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .88);
}

body.minus-web .picker-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

body.minus-web .picker-card {
  min-height: 320px;
  padding: 14px;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid rgba(218, 226, 236, .96);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 18px 40px rgba(15, 23, 42, .045);
}

body.minus-web .picker-card:hover {
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 22px 48px rgba(37, 99, 235, .09);
}

body.minus-web .picker-card-preview {
  min-height: 148px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(135deg, #fbfdff, #eef5fb);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .picker-card-head {
  align-items: center;
}

body.minus-web .picker-card-title {
  font-size: 16px;
  letter-spacing: -.01em;
}

body.minus-web .picker-card-copy {
  min-height: 44px;
  font-size: 13px;
  line-height: 1.55;
}

body.minus-web .picker-chip {
  min-height: 26px;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
}

body.minus-web .picker-card-foot {
  padding-top: 4px;
}

body.minus-web .picker-card-foot .hint {
  color: #94a3b8;
}

body.minus-web .picker-card-foot .btn {
  min-height: 36px;
  border-radius: 12px;
}

body.minus-web .picker-note {
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .picker-mock-frame {
  min-height: 112px !important;
  border-radius: 18px;
  background: linear-gradient(135deg, #172033, #31445d);
}

body.minus-web .picker-mock-card {
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

body.minus-web .picker-mock-badge {
  min-height: 26px;
  border: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

body.minus-web .picker-mock-link-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.minus-web .picker-mock-link-lines path {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, .22));
}

body.minus-web .picker-pair-left,
body.minus-web .picker-pair-right {
  position: absolute;
  width: 58px;
  height: 28px;
  padding: 8px;
  background: #fff;
}

body.minus-web .picker-pair-left {
  left: 18px;
}

body.minus-web .picker-pair-right {
  right: 18px;
}

body.minus-web .picker-sequence-stack {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.minus-web .picker-sequence-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

body.minus-web .picker-sequence-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

body.minus-web .picker-sequence-card.is-lifted {
  transform: translateX(10px);
  border: 1px solid rgba(96, 165, 250, .48);
}

body.minus-web .picker-object-shape,
body.minus-web .picker-object-text,
body.minus-web .picker-object-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

body.minus-web .picker-object-rect {
  width: 116px;
  height: 66px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

body.minus-web .picker-object-ellipse {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #7dd3fc);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .18);
}

body.minus-web .picker-object-text {
  width: 138px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}

body.minus-web .picker-object-button {
  min-width: 112px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .22);
}

body.minus-web .preset-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.minus-web .preset-card {
  border-radius: 18px;
  box-shadow: none;
}

body.minus-web .preset-preview {
  height: 54px;
  border-radius: 14px;
}

body.minus-web #templateLibraryModal .modal-card {
  width: min(1120px, calc(100vw - 32px));
}

body.minus-web #templateLibraryModal .modal-body {
  background: #f7f9fc;
}

body.minus-web .template-library-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.minus-web .template-library-intro {
  padding: 20px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(191, 219, 254, .44), transparent 34%), linear-gradient(135deg, #ffffff, #f4f8fd);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .template-library-kicker {
  margin-bottom: 7px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.minus-web .template-library-title {
  color: #111827;
  font-family: var(--app-heading-stack);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

body.minus-web .template-library-copy {
  max-width: 760px;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

body.minus-web .template-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

body.minus-web .template-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(218, 226, 236, .96);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 18px 40px rgba(15, 23, 42, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.minus-web .template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .36);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 22px 48px rgba(37, 99, 235, .09);
}

body.minus-web .template-preview {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(135deg, #fbfdff, #eef5fb);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .template-preview b,
body.minus-web .template-preview i,
body.minus-web .template-preview em,
body.minus-web .template-preview strong,
body.minus-web .template-preview span,
body.minus-web .template-preview small,
body.minus-web .template-preview q {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

body.minus-web .template-preview b {
  left: 22px;
  top: 24px;
  width: 52%;
  height: 16px;
  background: #111827;
}

body.minus-web .template-preview i {
  left: 22px;
  width: 68%;
  height: 10px;
}

body.minus-web .template-preview i:nth-of-type(1) {
  top: 58px;
}

body.minus-web .template-preview i:nth-of-type(2) {
  top: 80px;
  width: 48%;
}

body.minus-web .template-preview em {
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 34px;
  background: #2563eb;
}

body.minus-web .template-preview strong {
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 34px;
  background: #dbeafe;
}

body.minus-web .template-preview span {
  top: 72px;
  width: 92px;
  height: 38px;
}

body.minus-web .template-preview span:nth-of-type(1) {
  left: 28px;
  background: #111827;
}

body.minus-web .template-preview span:nth-of-type(2) {
  right: 28px;
  border: 2px solid #111827;
}

body.minus-web .template-preview small {
  left: 50%;
  top: 64px;
  width: 2px;
  height: 56px;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .15);
}

body.minus-web .template-preview q {
  left: 34px;
  width: 58%;
  height: 22px;
  border-radius: 14px;
}

body.minus-web .template-preview q:nth-of-type(1) {
  top: 48px;
}

body.minus-web .template-preview q:nth-of-type(2) {
  top: 80px;
  left: auto;
  right: 34px;
  width: 46%;
  background: #dbeafe;
}

body.minus-web .template-preview q:nth-of-type(3) {
  top: 112px;
  width: 50%;
}

body.minus-web .template-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body.minus-web .template-card-title,
body.minus-web .template-card-copy {
  display: block;
}

body.minus-web .template-card-title {
  color: #111827;
  font-family: var(--app-heading-stack);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
}

body.minus-web .template-card-copy {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

body.minus-web .template-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

body.minus-web .template-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

body.minus-web #mediaLibraryModal .modal-card {
  width: min(1120px, calc(100vw - 32px));
}

body.minus-web #mediaLibraryModal .modal-body {
  background: #f7f9fc;
}

body.minus-web .media-library-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.minus-web .media-library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(204, 251, 241, .46), transparent 34%), linear-gradient(135deg, #ffffff, #f4f8fd);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .media-library-kicker {
  margin-bottom: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.minus-web .media-library-title {
  color: #111827;
  font-family: var(--app-heading-stack);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

body.minus-web .media-library-copy {
  max-width: 780px;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

body.minus-web .media-library-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.minus-web .media-folder-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.minus-web .media-folder-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

body.minus-web .media-folder-chip.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.minus-web .media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

body.minus-web .media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(218, 226, 236, .96);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 18px 40px rgba(15, 23, 42, .045);
}

body.minus-web .media-card-preview {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(219, 234, 254, .28) 1px, transparent 1px), linear-gradient(135deg, #fbfdff, #eef5fb);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .media-card-preview img,
body.minus-web .media-card-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.minus-web .media-audio-preview {
  min-width: 96px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

body.minus-web .media-card-info {
  min-width: 0;
}

body.minus-web .media-card-title {
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.minus-web .media-card-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body.minus-web .media-card-folder {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

body.minus-web .media-card-folder span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

body.minus-web .media-card-folder .input {
  min-height: 36px;
  border-radius: 12px;
  font-size: 13px;
}

body.minus-web .media-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

body.minus-web .media-card-actions .btn {
  flex: 1 1 0;
  min-height: 34px;
  border-radius: 12px;
}

body.minus-web .media-library-empty {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: #64748b;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

body.minus-web .media-library-empty strong {
  color: #111827;
  font-size: 18px;
}

body.minus-web .desktop-shell {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  padding: 0;
  gap: 0;
  background: #eef2f5;
}

body.minus-web .desktop-titlebar {
  display: flex !important;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  gap: 12px;
  border-bottom: 1px solid #dfe6ef;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  -webkit-app-region: no-drag;
}

body.minus-web .desktop-titlebar-main {
  flex: 0 0 auto;
}

body.minus-web .desktop-project-meta {
  display: none !important;
}

body.minus-web .desktop-mode-switch,
body.minus-web .desktop-panel-switch,
body.minus-web .desktop-menubar,
body.minus-web .desktop-titlebar-side {
  display: flex !important;
  align-items: center;
}

body.minus-web .desktop-titlebar-side {
  margin-left: auto;
  gap: 10px;
}

body.minus-web .desktop-menubar {
  gap: 8px;
  position: relative;
  z-index: 300;
  overflow: visible;
}

body.minus-web .desktop-menu {
  position: relative;
}

body.minus-web .desktop-menu-panel {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 10000;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

body.minus-web #desktopMoreMenu .desktop-menu-panel {
  right: 0;
  left: auto;
}

body.minus-web .desktop-menu-launch,
body.minus-web .desktop-mode-btn,
body.minus-web .desktop-panel-toggle,
body.minus-web .desktop-menu > summary {
  min-height: 34px;
  border-radius: 12px;
}

body.minus-web .desktop-window-controls,
body.minus-web .desktop-status-chip {
  display: none !important;
}

body.minus-web #appShell {
  height: calc(100vh - 58px);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.minus-web .app {
  border-radius: 0;
}

body.minus-web .topbar.clean-topbar {
  display: flex;
  border-radius: 0;
  min-height: 66px;
  border-bottom: 1px solid #e8eef6;
  background: #f8fafc;
}

body.minus-web .topbar-leading {
  display: flex;
}

body.minus-web .toolbar-actions.command-strip.clean-command-strip {
  align-items: center;
}

body.minus-web .toolbar-actions.command-strip.clean-command-strip > #btnOpenStartHub,
body.minus-web .toolbar-actions.command-strip.clean-command-strip > #btnSaveJsonWeb,
body.minus-web .toolbar-actions.command-strip.clean-command-strip > #btnPreview,
body.minus-web .toolbar-actions.command-strip.clean-command-strip > #btnPublishCenter,
body.minus-web .toolbar-actions.command-strip.clean-command-strip > .course-more {
  display: none !important;
}

body.minus-web .web-shell-btn {
  border-color: #e3e8ef;
  background: #ffffff;
}

body.minus-web .web-shell-btn.is-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

body.minus-web .web-shell-btn.is-primary:hover {
  border-color: #0b1220;
  background: #0b1220;
  color: #ffffff;
}

body.minus-web .cloud-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.minus-web .desktop-cloud-user-badge {
  flex: 0 0 auto;
}

body.minus-web .cloud-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(219, 234, 254, .9), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, .94), rgba(226, 232, 240, .92));
  backdrop-filter: blur(10px);
}

body.minus-web .cloud-auth-overlay[hidden] {
  display: none !important;
}

body.minus-web .cloud-auth-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

body.minus-web .cloud-auth-kicker {
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.minus-web .cloud-auth-title {
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

body.minus-web .cloud-auth-copy {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

body.minus-web .cloud-auth-fields {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

body.minus-web .cloud-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.minus-web .cloud-auth-status {
  min-height: 20px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.minus-web .cloud-auth-status[data-tone="error"] {
  color: #dc2626;
}

body.minus-web .cloud-auth-status[data-tone="pending"] {
  color: #2563eb;
}

body.minus-web.cloud-access-waiting .cloud-auth-fields,
body.minus-web.cloud-access-waiting #btnCloudLogin,
body.minus-web.cloud-access-waiting #btnCloudRegister {
  display: none;
}

body.minus-web .cloud-admin-card {
  width: min(900px, calc(100vw - 32px));
}

body.minus-web .cloud-admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

body.minus-web .cloud-admin-summary > div {
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #f8fafc;
}

body.minus-web .cloud-admin-summary strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

body.minus-web .cloud-admin-summary span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.minus-web .cloud-admin-table {
  display: grid;
  gap: 10px;
}

body.minus-web .cloud-storage-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 22px;
  background: #ffffff;
}

body.minus-web .cloud-storage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.minus-web .cloud-storage-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

body.minus-web .cloud-storage-head p {
  max-width: 560px;
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

body.minus-web .cloud-storage-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

body.minus-web .cloud-storage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.minus-web .cloud-storage-summary > div {
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #f8fafc;
}

body.minus-web .cloud-storage-summary strong,
body.minus-web .cloud-storage-summary span {
  display: block;
}

body.minus-web .cloud-storage-summary strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

body.minus-web .cloud-storage-summary span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.minus-web .cloud-storage-section-title {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.minus-web .cloud-storage-table {
  display: grid;
  gap: 8px;
}

body.minus-web .cloud-storage-row,
body.minus-web .cloud-storage-media-row,
body.minus-web .cloud-project-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

body.minus-web .cloud-storage-row {
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(120px, .8fr)) minmax(90px, auto);
}

body.minus-web .cloud-storage-media-row {
  grid-template-columns: minmax(220px, 1.1fr) minmax(80px, auto) minmax(220px, 1fr) auto;
}

body.minus-web .cloud-project-row {
  grid-template-columns: minmax(240px, 1fr) minmax(90px, auto) auto;
}

body.minus-web .cloud-storage-owner {
  min-width: 0;
}

body.minus-web .cloud-storage-owner strong,
body.minus-web .cloud-storage-owner span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.minus-web .cloud-storage-owner strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

body.minus-web .cloud-storage-owner span {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

body.minus-web .cloud-storage-row > strong {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

body.minus-web .cloud-admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #ffffff;
}

body.minus-web .cloud-admin-user {
  display: grid;
  gap: 3px;
}

body.minus-web .cloud-admin-user strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

body.minus-web .cloud-admin-user span {
  color: #64748b;
  font-size: 12px;
}

body.minus-web .cloud-admin-badges,
body.minus-web .cloud-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.minus-web .cloud-admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

body.minus-web .cloud-admin-pill.is-active {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

body.minus-web .cloud-admin-pill.is-pending {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.minus-web .cloud-admin-pill.is-blocked {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

body.minus-web .cloud-admin-empty {
  padding: 18px;
  border: 1px dashed #dbe3ef;
  border-radius: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body.minus-web .cloud-admin-empty.is-error {
  color: #dc2626;
}

body.minus-web .cloud-access-launch {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.minus-web .cloud-access-card {
  width: min(760px, calc(100vw - 32px));
}

body.minus-web .cloud-access-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 20px;
  background: #f8fafc;
}

body.minus-web .cloud-access-status strong,
body.minus-web .cloud-access-status span {
  display: block;
}

body.minus-web .cloud-access-status strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

body.minus-web .cloud-access-status span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.minus-web .cloud-access-status.is-active {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

body.minus-web .cloud-access-status.is-pending {
  border-color: #bfdbfe;
  background: #eff6ff;
}

body.minus-web .cloud-access-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
}

body.minus-web .cloud-access-status.is-active .cloud-access-dot {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

body.minus-web .cloud-access-status.is-pending .cloud-access-dot {
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);
}

body.minus-web .cloud-access-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.minus-web .cloud-access-steps > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #ffffff;
}

body.minus-web .cloud-access-steps strong {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

body.minus-web .cloud-access-steps span,
body.minus-web .cloud-access-note,
body.minus-web .cloud-access-message {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

body.minus-web .cloud-access-note,
body.minus-web .cloud-access-message {
  margin-top: 12px;
}

body.minus-web .cloud-access-message {
  color: #1d4ed8;
}

body.minus-web .cloud-access-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

body.minus-web .cloud-access-link {
  font-weight: 800;
}

body.minus-web .cloud-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.minus-web .native-utility-rack {
  display: none !important;
}

body.minus-web [data-desktop-command="loadProjectFolder"],
body.minus-web [data-desktop-command="saveProjectFolder"],
body.minus-web #btnLoadProjectFolder,
body.minus-web #btnSaveProjectFolder,
body.minus-web #startupOpenFolderBtn {
  display: none !important;
}

body.minus-web .startup-hub-copy::after {
  content: " В web-версии проекты сохраняются на сервере и показываются только текущему автору.";
}

@media (max-width: 1180px) {
  body.minus-web .desktop-titlebar {
    gap: 8px;
  }

  body.minus-web .desktop-titlebar-side {
    gap: 6px;
  }
}

@media (max-width: 900px) {
  body.minus-web .desktop-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.minus-web .desktop-titlebar {
    flex-wrap: wrap;
    min-height: 58px;
  }

  body.minus-web #appShell {
    height: calc(100vh - 106px);
  }

  body.minus-web .title-subline {
    display: none;
  }

  body.minus-web .toolbar-actions.command-strip.clean-command-strip {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  body.minus-web .cloud-admin-summary,
  body.minus-web .cloud-admin-row,
  body.minus-web .cloud-storage-summary,
  body.minus-web .cloud-storage-row,
  body.minus-web .cloud-storage-media-row,
  body.minus-web .cloud-project-row {
    grid-template-columns: 1fr;
  }

  body.minus-web .cloud-storage-head {
    display: grid;
  }

  body.minus-web .cloud-storage-row > strong {
    text-align: left;
  }
}
