/* Header icon groups (mv-), Home list (hm-), Marketplace tabs / sharing (mk-), profile avatars,
   sign-in and sharing cards (pf-). Tokens: panel rgba(0,0,0,.6), chip rgba(255,255,255,.06),
   text #e8e8e8, muted #9fb3c8, headings #cfefff, accent #f0a030, glow #4be9fa. */

/* ---------- header: [Data · Develop · Report] [assistant bar] [Market · Canvas · Profile · Home] ---- */
.mv-head { display: flex; align-items: center; gap: 1.2vw; padding: 1.3vh 2vw 0; }
.mv-grp { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 6px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px;
  box-shadow: 0 0 24px rgba(75,233,250,0.08); }
.mv-grp > div { margin: 0 !important; }                     /* blocks.icon wrappers */
.mv-grp abbr { text-decoration: none; }
.mv-grp i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px;
  border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.mv-grp i:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.mv-mid { flex: 1; min-width: 0; max-width: 820px; margin: 0 auto; }

/* ---------- Home ------------------------------------------------------------------------------ */
.hm-page { height: calc(100vh - 84px); overflow-y: auto; padding: 6px 2vw 40px; }
.hm-head { margin-bottom: 12px; }
.pk-scope .hm-head .rp-btn, .pk-scope .mk-page .rp-head .rp-btn { background: rgba(0,0,0,0.6); }
.hm-head .rp-title, .hm-head .rp-sub { text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hm-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #06121a; font-size: 1.05rem;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--c) 70%); box-shadow: 0 0 18px -2px var(--c); }
.hm-avatar i { font-size: 1.2rem; }
.hm-note { background: rgba(75,233,250,0.08); border: 1px solid rgba(75,233,250,0.35); color: #cfefff;
  border-radius: 10px; padding: 7px 12px; font-size: .82rem; margin-bottom: 10px; }
.hm-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.hm-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; min-width: 280px; flex: 0 1 420px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; color: #9fb3c8; }
.hm-search:focus-within { border-color: rgba(240,160,48,0.7); }
.hm-search-in { flex: 1; min-width: 0; background: transparent !important; border: none !important; outline: none;
  color: #e8e8e8 !important; font-size: .85rem; }
.hm-search-in::placeholder { color: #7f93a8; }
.hm-lbl { color: #9fb3c8; font-size: .78rem; margin-left: 8px; }
.hm-sort { width: 240px; font-size: .82rem; }
.hm-sort .Select-control { background: rgba(0,0,0,0.6) !important; border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 10px !important; }
.hm-sort .Select-value-label, .hm-sort .Select-placeholder { color: #e8e8e8 !important; }
.hm-sort .Select-menu-outer { background: #0f171f !important; border: 1px solid rgba(255,255,255,0.15) !important; }
.hm-sort .VirtualizedSelectOption { color: #cfdcea; background: transparent; }
.hm-sort .VirtualizedSelectFocusedOption { background: rgba(240,160,48,0.18); color: #fff; }

.hm-cols, .hm-row { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(430px, 520px) 96px 152px;
  align-items: center; gap: 14px; }
.hm-cols { color: #9fb3c8; font-size: .68rem; text-transform: uppercase; letter-spacing: .7px; padding: 5px 15px 5px 71px;
  grid-template-columns: minmax(250px, 1fr) minmax(430px, 520px) 96px 152px; margin-bottom: 6px;
  background: rgba(0,0,0,0.45); border-radius: 10px; }
.hm-cols .hm-metrics { background: none; }
.hm-list { display: flex; flex-direction: column; gap: 8px; }
.hm-row { position: relative; grid-template-columns: 44px minmax(250px, 1fr) minmax(430px, 520px) 96px 152px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 14px 10px 12px;
  transition: border-color .15s, transform .15s; }
.hm-row::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: var(--c); opacity: .85; }
.hm-row:hover { border-color: rgba(240,160,48,0.5); transform: translateX(2px); }
.hm-row.cur { border-color: rgba(127,238,255,0.45); }
.hm-row.broken { opacity: .6; }
.hm-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--c); font-size: 1.05rem; background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.hm-main { min-width: 0; cursor: pointer; }
.hm-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hm-name { color: #cfefff; font-weight: 600; font-size: .95rem; margin-right: 4px; }
.hm-main:hover .hm-name { color: #fff; text-decoration: underline; text-decoration-color: rgba(240,160,48,.6); }
.hm-chip { font-size: .64rem; border-radius: 8px; padding: 0 7px; line-height: 1.7; white-space: nowrap;
  color: var(--c, #cfdcea); border: 1px solid color-mix(in srgb, var(--c, #cfdcea) 50%, transparent);
  background: color-mix(in srgb, var(--c, #cfdcea) 8%, transparent); }
.hm-chip.soft { --c: #9fb3c8; }
.hm-desc { color: #9fb3c8; font-size: .78rem; margin-top: 3px; line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hm-metrics { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 8px; align-items: baseline;
  background: rgba(255,255,255,0.03); border-radius: 8px; padding: 4px 8px; }
.hm-m { color: #e8e8e8; font-variant-numeric: tabular-nums; font-size: .9rem; text-align: right; }
.hm-cols .hm-m { font-size: .68rem; color: #9fb3c8; }
.hm-m.good { color: #5fd07a; }
.hm-m.bad { color: #ef7b7b; }
.hm-m.mute { color: #5c6b7a; }
.hm-src { grid-column: 1 / -1; color: #6f8295; font-size: .64rem; text-align: right; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.hm-cols .hm-src { text-transform: none; letter-spacing: 0; }
.hm-date { color: #9fb3c8; font-size: .76rem; text-align: right; }
.hm-open, .hm-open-h { display: flex; gap: 4px; justify-content: flex-end; }
.hm-go { width: 34px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: #cfefff; cursor: pointer; }
.hm-go:hover { border-color: #f0a030; color: #f5d6a3; }
.hm-go:disabled { opacity: .35; cursor: default; }
.hm-empty { color: #9fb3c8; font-size: .85rem; padding: 26px; text-align: center; border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px; }
@media (max-width: 1250px) {
  .hm-cols { display: none; }
  .hm-row { grid-template-columns: 44px 1fr 152px; }
  .hm-row .hm-metrics { grid-column: 2 / 3; }
  .hm-row .hm-date { display: none; }
}

/* ---------- Marketplace ------------------------------------------------------------------------ */
.mk-tabs { margin-top: 4px; }
.mk-search { flex: 0 1 460px; }
.mk-hint { margin: -2px 0 10px; }
.mk-img { position: relative; }
.mk-star { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.55); color: #cfdcea; cursor: pointer;
  transition: transform .15s, color .15s; }
.mk-star:hover { transform: scale(1.1); color: #f5d6a3; }
.mk-star.on { color: #f0a030; border-color: rgba(240,160,48,0.7); text-shadow: 0 0 10px rgba(240,160,48,0.8); }
.pk-chip.mk-algo { border-color: rgba(154,110,224,0.7); color: #d6c5f5; }
.idea-tool.star.on i { color: #f0a030; text-shadow: 0 0 8px rgba(240,160,48,0.8); }
.idea-tool.star i { color: #cfdcea; }
.mk-dhead { display: flex; gap: 18px; align-items: stretch; }
.mk-dimg { width: 300px; min-height: 190px; flex: 0 0 300px; border-radius: 10px; background-size: cover;
  background-position: center; background-color: #0c1116; }
.mk-dinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-dtext { color: #e8e8e8; font-size: .9rem; line-height: 1.55; white-space: pre-line; }
.mk-dact { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }

/* ---------- Profile: avatar, sign-in & security, sharing ------------------------------------------ */
.pf-avatar.icon { color: #06121a; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--av) 72%);
  box-shadow: 0 0 22px -2px var(--av); }
.pf-avs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pf-av { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  background: rgba(255,255,255,0.05); color: var(--av, #cfefff); font-size: 1.05rem; transition: transform .12s; }
.pf-av:hover { transform: scale(1.08); border-color: #f0a030; }
.pf-av.cur { background: radial-gradient(circle at 35% 30%, #fff 0%, var(--av) 72%); color: #06121a;
  border-color: #fff; box-shadow: 0 0 14px -2px var(--av); }
.pf-avc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pf-avc .pf-swc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; background: var(--av); cursor: pointer; padding: 0; }
.pf-avc .pf-swc.cur { border-color: #fff; }
.pf-radio label { margin-right: 18px; }
.pf-radio input { margin-right: 5px; accent-color: #f0a030; }
.pf-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-sec > div { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 12px; }
.pf-sec .pf-sub-t { color: #cfefff; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.pf-sec input { width: 100%; margin-bottom: 6px; }
.pf-share-img { width: 100%; height: 120px; border-radius: 10px; background-size: cover; background-position: center;
  background-color: #0c1116; border: 1px dashed rgba(255,255,255,0.18); display: flex; align-items: flex-end;
  justify-content: flex-start; }
.pf-share-img span { background: rgba(0,0,0,0.6); color: #cfdcea; font-size: .7rem; padding: 2px 8px; border-radius: 0 8px 0 10px; }
.pf-upload { border: 1px dashed rgba(255,255,255,0.22); border-radius: 10px; padding: 8px; text-align: center; color: #9fb3c8;
  font-size: .78rem; cursor: pointer; margin-top: 6px; }
.pf-upload:hover { border-color: #f0a030; color: #f5d6a3; }
.pf-share-state { font-size: .78rem; color: #9fb3c8; margin-bottom: 8px; }
.pf-share-state b { color: #4be9fa; }
.mk-dmore { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 12px; margin-top: 14px; }
.mk-items { margin: 4px 0 0; padding-left: 18px; color: #cfdcea; font-size: .82rem; line-height: 1.7; }

/* Marketplace ▸ Interactive apps: rows by learning path / topic / A-Z (app_catalog.py; the cards stay in the
   one grid and are re-ordered with CSS `order`, a row heading spans the whole width) */
.mk-rowh { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 -4px;
           padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.mk-rowh:first-of-type { margin-top: 0; }
.mk-rowh > i { color: #f0a030; font-size: .9rem; width: 18px; text-align: center; }
.mk-rowh-t { color: #cfefff; font-size: 1.02rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.mk-rowh-s { color: #9fb3c8; font-size: .78rem; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.mk-arrw { display: flex; align-items: center; gap: 8px; margin-left: 28px; align-self: flex-end; padding-bottom: 6px; }
.mk-arr-k { color: #9fb3c8; font-size: .66rem; text-transform: uppercase; letter-spacing: .6px; }
.mk-arr { display: flex; gap: 6px; }
.mk-arr label { display: inline-flex !important; margin: 0 !important; cursor: pointer; padding: 2px 11px; border-radius: 14px;
                font-size: .76rem; color: #e8e8e8; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.14); }
.mk-arr label:has(input:checked) { border-color: #f0a030; color: #f0a030; background: rgba(240,160,48,0.10); }
.mk-arr input { display: none; }
.pk-chip.mk-lv1 { border-color: rgba(95,191,106,0.7); color: #bfe8c4; }
.pk-chip.mk-pf i { color: #f0a030; font-size: .62rem; }
