.project-visual {
  --pv-ink: #183951;
  --pv-muted: #4f657a;
  --pv-accent: #246bc4;
  --pv-tint: #edf5ff;
  --pv-edge: #d7e7f0;
  --pv-white: #fff;
  container-type: inline-size;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--pv-ink);
  border-radius: 16px;
  overflow: hidden;
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
  font-weight: 450;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.project-visual *, .project-visual *::before, .project-visual *::after { box-sizing: border-box; }
.project-visual :is(p, table, code) { margin: 0; }
.project-visual.pv-screenshot { background: #f4f8fb; }
.project-visual.pv-screenshot img { width: 100%; height: auto; display: block; object-fit: contain; }
.project-visual.pv-placeholder { padding: 3rem; background: var(--pv-tint); }
.pv-stage {
  display: grid;
  align-items: center;
  width: 100%;
  aspect-ratio: 1.65;
  padding: clamp(13px,5cqi,44px) clamp(13px,5.4cqi,46px);
  background:
    radial-gradient(ellipse at 96% 2%,#e2f4ff 0,transparent 60%),
    linear-gradient(124deg,#d4e5f8,#c1dbf5 53%,#d7edf5);
}
.project-visual[data-project-visual="data-mart"] { --pv-accent: #257464; --pv-tint: #edf8f4; --pv-edge: #dceae2; }
.project-visual[data-project-visual="data-mart"] .pv-stage { background: linear-gradient(128deg,#e3f0e9,#cbe3da 59%,#e1ecdf); }
.project-visual[data-project-visual="prism"] { --pv-accent: #685ca0; --pv-tint: #f2effa; --pv-edge: #e4dff1; }
.project-visual[data-project-visual="prism"] .pv-stage { background: linear-gradient(128deg,#e4e6f6,#d6d7ed 59%,#eae7f4); }
.project-visual[data-project-visual="kanban"] { --pv-accent: #3c659b; --pv-tint: #eef4fb; }
.project-visual[data-project-visual="kanban"] .pv-stage { background: linear-gradient(128deg,#e8e9f7,#d1dff0 52%,#dfeff1); }
.project-visual[data-project-visual="mingx-tools"] { --pv-accent: #52668c; --pv-tint: #eef3f9; --pv-edge: #dae4ea; }
.project-visual[data-project-visual="mingx-tools"] .pv-stage { background: linear-gradient(128deg,#dae9ed,#cedfe8 54%,#e2edf1); }
.pv-window {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(82,113,139,.18);
  border-radius: clamp(9px,2.45cqi,17px);
  background: var(--pv-white);
  box-shadow: 0 2px 5px rgba(35,61,84,.055), 0 13px 32px -17px rgba(35,61,84,.36);
  overflow: hidden;
}
.pv-titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: clamp(9px,2cqi,16px) clamp(11px,3cqi,23px);
  border-bottom: 1px solid var(--pv-edge);
}
.pv-title { display: flex; align-items: center; gap: clamp(6px,1.35cqi,10px); }
.pv-title strong { font-size: clamp(.85rem,2.63cqi,1.13rem); font-weight: 680; letter-spacing: -.025em; }
.pv-label { flex-shrink: 0; color: var(--pv-muted); border: 1px solid var(--pv-edge); padding: 2px 7px; border-radius: 99px; font-size: clamp(.71rem,1.86cqi,.8rem); letter-spacing: .015em; line-height: 1.4; }
.pv-icon { display: inline-block; width: clamp(19px,4.4cqi,29px); aspect-ratio: 1; flex-shrink: 0; position: relative; border-radius: 6px; color: var(--pv-accent); background: var(--pv-tint); }
.pv-icon::before, .pv-icon::after { content: ""; position: absolute; }
.pv-icon-agent::before { inset: 23% 17% 27%; border: 1.7px solid currentColor; border-radius: 3px; }
.pv-icon-agent::after { width: 20%; height: 20%; bottom: 14%; left: 32%; background: currentColor; clip-path: polygon(0 0,100% 0,0 100%); }
.pv-icon-mart::before { inset: 25% 18% 36%; border: 1.5px solid currentColor; border-radius: 3px; }
.pv-icon-mart::after { inset: 57% 20% 23%; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; }
.pv-icon-prism::before, .pv-icon-prism::after { clip-path: polygon(50% 0,100% 100%,0 100%); }
.pv-icon-prism::before { inset: 15% 15% 20%; background: currentColor; }
.pv-icon-prism::after { inset: 33% 30% 28%; background: var(--pv-tint); }
.pv-icon-kanban::before { inset: 22% 16%; background: linear-gradient(to right, currentColor 0 24%, transparent 24% 38%, currentColor 38% 62%, transparent 62% 76%, currentColor 76%); clip-path: polygon(0 0,100% 0,100% 49%,68% 49%,68% 94%,33% 94%,33% 73%,0 73%); }
.pv-icon-tools::before { content: "{}"; inset: 0; display: grid; place-items: center; font-family: ui-monospace,monospace; font-weight: 700; font-size: clamp(.72rem,2.75cqi,1.2rem); }
/* All examples are drawings. Their visible content is described once on the figure. */
.pv-dialog, .pv-sheet, .pv-board, .pv-code-area { padding: clamp(11px,2.9cqi,23px) clamp(11px,3.35cqi,25px); }
.pv-dialog { display: flex; flex-direction: column; align-items: stretch; gap: clamp(9px,2.25cqi,18px); }
.project-visual .pv-question { align-self: end; width: fit-content; max-width: 100%; padding: 6px 11px; border-radius: 11px 11px 2px 11px; background: var(--pv-tint); color: #264f7c; font-size: clamp(.79rem,2.2cqi,.98rem); }
.pv-caption, .pv-sheet-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pv-caption, .pv-sheet-title strong { font-size: clamp(.82rem,2.65cqi,1.14rem); }
.pv-caption > span, .pv-source { color: var(--pv-muted); font-size: clamp(.71rem,1.95cqi,.86rem); }
.pv-caption { margin-bottom: clamp(5px,1.2cqi,10px); }
.pv-bar-row {
  display: grid; grid-template-columns: 2.6em minmax(0,1fr) 2.45em; align-items: center; gap: 1.5%;
  min-height: clamp(20px,4.6cqi,34px); color: #435b73; font-size: clamp(.77rem,2.04cqi,.94rem);
}
.pv-bar-row strong { text-align: end; color: #275689; font-size: 1em; font-weight: 620; }
.pv-bar-track { height: clamp(8px,1.75cqi,14px); border-radius: 3px; background: #edf3f9; }
.pv-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4486e5,#71a6ee); }
.pv-caption + .pv-bar-row .pv-bar-track i { background: linear-gradient(90deg,#2b66c3,#4a87e3); }
.pv-sheet-title { align-items: center; margin-bottom: clamp(8px,2cqi,17px); }
.pv-sheet-title strong { font-weight: 680; letter-spacing: -.02em; }
.pv-sheet-title > span { padding: 2px 7px; border-radius: 4px; color: var(--pv-accent); background: var(--pv-tint); font-size: clamp(.71rem,1.93cqi,.82rem); }
.pv-field-list > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: clamp(4px,.92cqi,7px) 8px; border-bottom: 1px solid var(--pv-edge); color: #37564e; font-size: clamp(.77rem,2.1cqi,.94rem); }
.pv-field-list b { font-weight: 530; }
.pv-field-list > .pv-table-head { color: #49675c; background: var(--pv-tint); font-size: clamp(.72rem,1.9cqi,.86rem); font-weight: 580; }
.project-visual .pv-param { display: flex; align-items: center; gap: 10px; color: var(--pv-muted); margin-top: clamp(8px,1.8cqi,14px); font-size: clamp(.72rem,1.9cqi,.86rem); }
.pv-param b { color: #316d5c; background: #f0f7f3; border: 1px solid #d9e8e1; border-radius: 4px; padding: 1px 6px; font-weight: 540; }
.pv-sheet-title .pv-delta { color: #88441e; background: #fff1df; }
.pv-compare { border-spacing: 0; border-collapse: collapse; width: 100%; font-size: clamp(.78rem,2.1cqi,.94rem); }
.pv-compare :is(td,th) { padding: clamp(5px,1.12cqi,9px) clamp(3px,1.5cqi,11px); border-bottom: 1px solid #edeaf3; text-align: right; white-space: nowrap; }
.pv-compare th:first-child { text-align: left; }
.pv-compare thead th { color: #5e5871; background: var(--pv-tint); font-weight: 560; font-size: clamp(.71rem,1.93cqi,.88rem); }
.pv-compare tbody th { font-weight: 530; }
.pv-compare .pv-flag { background: #fff5e9; }
.pv-flag b { color: #894421; }
.pv-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(4px,1.45cqi,11px); }
.pv-lanes > div { padding: clamp(4px,1.25cqi,10px); border-radius: 7px; background: #f0f3f7; }
.pv-lanes > div:nth-child(2) { background: #edf3fe; }
.pv-lanes > div:last-child { background: #edf6f2; }
.pv-lane-name, .pv-task small { font-size: clamp(.71rem,1.88cqi,.84rem); color: #4f6174; }
.pv-lane-name { display: inline-flex; align-items: center; gap: 4px; font-weight: 590; }
.pv-lane-name::before { content: ""; width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #798a9a; }
.pv-lanes > div:nth-child(2) .pv-lane-name::before { background: #4d83c7; }
.pv-lanes > div:last-child .pv-lane-name::before { background: #4d8b72; }
.pv-task { margin-top: clamp(5px,1.5cqi,10px); min-width: 0; border: 1px solid #dbe4ed; border-radius: 5px; padding: clamp(5px,1.4cqi,12px) clamp(3px,1.13cqi,9px); background: #fff; }
.pv-task b, .pv-task small { display: block; }
.pv-task b { color: var(--pv-ink); font-size: clamp(.75rem,2cqi,.93rem); font-weight: 610; }
.pv-task small { margin-top: 4px; }
.pv-plan { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 5%; margin-top: clamp(11px,2.8cqi,23px); }
.pv-plan > b { color: var(--pv-ink); font-size: clamp(.75rem,1.98cqi,.91rem); font-weight: 580; }
.pv-week { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); text-align: center; gap: 3px 0; color: var(--pv-muted); font-size: clamp(.7rem,1.86cqi,.82rem); }
.pv-week i, .pv-week em { grid-row: 2; height: 7px; margin-block: 2px; }
.pv-week i { grid-column: 2 / 4; background: #659be5; border-radius: 3px; }
.pv-week em { grid-column: 5; justify-self: center; width: 7px; background: #3c618e; transform: rotate(45deg); }
.pv-code-area { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(6px,1.6cqi,13px); }
.pv-editor { min-width: 0; min-height: clamp(95px,23cqi,184px); background: #f3f6f9; border: 1px solid #e0e7ed; border-radius: 7px; padding: clamp(6px,1.8cqi,14px); }
.pv-editor > b { display: block; margin-bottom: clamp(7px,1.8cqi,15px); font-size: clamp(.72rem,1.93cqi,.87rem); color: #475b70; font-weight: 590; }
.pv-editor code { display: block; font: 510 clamp(.71rem,2cqi,.91rem)/1.58 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #344960; overflow-wrap: anywhere; }
.pv-output { background: #f0f4fb; border-color: #dae3ef; }
.pv-output code i { color: #4c5895; font-style: normal; }
.pv-output code em { color: #276676; font-style: normal; }
.pv-output code strong { color: #305d97; font-weight: 600; }
@container (max-width: 390px) {
  .pv-stage { aspect-ratio: auto; min-height: 190px; padding: 12px; }
  .pv-titlebar { padding: 8px 10px; }
  .pv-dialog, .pv-sheet, .pv-board, .pv-code-area { padding: 10px; }
}
