.pmv-app { display: flex; flex-direction: column; gap: 18px; }
.pmv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pmv-samples { display: flex; flex-wrap: wrap; gap: 8px; }

.pmv-mobile-summary { display: none; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-surface); border-radius: 10px; box-shadow: var(--shadow-card); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; }

.pmv-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pmv-left { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pmv-right { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.pmv-card { background: var(--bg-canvas); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; min-width: 0; }
.pmv-sec-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.015em; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pmv-sec-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pmv-hint { margin: 0; font-size: var(--text-xs); color: var(--ink-secondary); line-height: 1.5; }

.pmv-fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pmv-fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.textarea-input { width: 100%; padding: 10px 12px; font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-primary); background: var(--bg-canvas); border: 1px solid var(--border-strong); border-radius: 8px; resize: vertical; line-height: 1.5; }
.textarea-input:focus { outline: none; border-color: var(--ink-primary); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.mono-input { font-family: var(--font-mono); font-size: var(--text-xs); }
.code-area { background: var(--bg-code); color: var(--ink-on-dark); border-color: var(--border-code); }

.pmv-tools-list { display: flex; flex-direction: column; gap: 10px; }
.tool-item-box { padding: 12px; border-radius: 10px; background: var(--bg-surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.tool-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool-item-label { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--ink-primary); }
.btn-remove-tool { background: var(--bg-canvas); border: 1px solid var(--border-strong); border-radius: 6px; padding: 3px 8px; font-size: var(--text-xs); color: var(--status-block-fg); cursor: pointer; }
.hints-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hint-check { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-primary); cursor: pointer; min-height: 36px; }
.hint-check input { width: 16px; height: 16px; accent-color: var(--ink-primary); }

.pmv-audit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-row { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border-hairline); background: var(--bg-surface); display: flex; flex-direction: column; gap: 4px; }
.rule-row.rule-fail { background: var(--status-block-bg); border-color: var(--status-block-border); }
.rule-row.rule-warn { background: var(--status-fix-bg); border-color: var(--status-fix-border); }
.rule-row.rule-pass { background: var(--bg-surface); border-color: var(--border-hairline); padding: 8px 12px; }

.rule-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-id { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; color: var(--ink-primary); }
.rule-path { font-family: var(--font-mono); font-size: var(--text-xs); background: var(--bg-subtle); padding: 2px 6px; border-radius: 5px; color: var(--ink-secondary); }
.rule-msg { font-size: var(--text-xs); color: var(--ink-primary); line-height: 1.45; }
.rule-link { font-size: var(--text-xs); font-weight: 600; color: var(--ink-primary); text-decoration: underline; align-self: flex-start; }

/* V2 4-State ZIP Export Button */
.zip-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-hairline); display: flex; flex-direction: column; gap: 8px; }
.zip-box .btn { border-radius: var(--radius-pill); }
.btn-zip-blocked { background: var(--bg-subtle); color: var(--ink-muted); cursor: not-allowed; opacity: 1; }
.btn-zip-blocked:hover { background: var(--bg-subtle); opacity: 1; }
.btn-zip-warn { background: var(--bg-canvas); color: var(--status-fix-fg); border: 1.5px solid var(--status-fix-border); }
.btn-zip-warn:hover { background: var(--status-fix-bg); color: var(--status-fix-fg); }
.btn-zip-done { background: var(--accent-emerald); color: var(--bg-canvas); }
.btn-zip-done:hover { background: var(--accent-emerald); opacity: 0.95; color: var(--bg-canvas); }
.zip-note { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); line-height: 1.45; }
.zip-note.is-error { color: var(--status-block-fg); font-weight: 600; }

.code-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; max-width: 100%; }
.code-tab { flex: 0 0 auto; min-height: 34px; padding: 5px 11px; border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); background: var(--bg-surface); color: var(--ink-secondary); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; cursor: pointer; white-space: nowrap; }
.code-tab.is-active { background: var(--ink-primary); color: var(--bg-canvas); border-color: var(--ink-primary); font-weight: 600; }

.pmv-code-pre { margin: 0; padding: 14px; background: var(--bg-code); color: var(--ink-on-dark); border: 1px solid var(--border-code); border-radius: 10px; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.55; overflow-x: auto; max-height: 290px; white-space: pre; }
.curl-row { margin-top: 12px; }
.curl-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-code); color: var(--accent-emerald); padding: 8px 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-code); }
.curl-box code { font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; overflow-x: auto; min-width: 0; flex: 1; display: block; padding-bottom: 2px; scrollbar-width: thin; }
.curl-box .code-copy-btn { flex-shrink: 0; }

@media (max-width: 1023px) {
  .pmv-mobile-summary { display: flex; }
  .pmv-left, .pmv-right { grid-column: span 12; }
}
@media (max-width: 767px) {
  .pmv-fields-2, .pmv-fields-3 { grid-template-columns: minmax(0, 1fr); }
  .pmv-samples { width: 100%; }
  .pmv-samples .btn { flex: 1 1 48%; }
  .pmv-topbar .seg-tabs { width: 100%; }
  .pmv-topbar .seg-tab { flex: 1 1 48%; text-align: center; }
  .code-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
}
