.compliance-page { padding: 12px; }
.nav-item[data-nav="compliance-label"] > span:first-child { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; font-size: 0 !important; background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.1 11 22.7a2.4 2.4 0 0 1-3.4 0L1.3 16.4a2.4 2.4 0 0 1 0-3.4L10.9 3.4A4.8 4.8 0 0 1 14.3 2H20a2 2 0 0 1 2 2v5.7a4.8 4.8 0 0 1-1.4 3.4Z'/%3E%3Ccircle cx='17' cy='7' r='1'/%3E%3Cpath d='m7 15 2 2 5-5'/%3E%3C/svg%3E"); }
.compliance-intro { margin-bottom: 8px; }
.compliance-intro h2 { margin: 0 0 4px; font-size: 20px; color: var(--text-1, #1d2129); }
.compliance-intro p { margin: 0; color: var(--text-3, #86909c); line-height: 1.45; }
.compliance-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.compliance-form-card, .compliance-preview-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border, #e5e6eb); border-radius: 8px; padding: 14px; }
.compliance-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.compliance-form-grid .field.full { grid-column: 1 / -1; }
.compliance-form-grid textarea { min-height: 58px; resize: vertical; line-height: 1.4; }
.compliance-form-grid textarea[rows="5"] { min-height: 104px; }
.compliance-switches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 9px 10px; background: #f7f8fa; border-radius: 6px; }
.compliance-switches label { display: inline-flex; align-items: center; gap: 7px; color: #4e5969; }
.compliance-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.compliance-preview-head h3, .compliance-form-card h3 { margin: 0; font-size: 16px; }
.compliance-preview-head p { margin: 3px 0 0; color: #86909c; font-size: 12px; }
.compliance-canvas-wrap { position: relative; width: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; border: 1px solid #e5e6eb; border-radius: 7px; background: #d0a069; aspect-ratio: 1; cursor: zoom-in; }
.compliance-canvas-wrap canvas { display: block; width: 100%; height: 100%; transform: scale(1); transform-origin: 50% 50%; transition: transform .18s ease-out; will-change: transform; }
.compliance-canvas-wrap:hover canvas { transform: scale(1.75); }
.compliance-zoom-hint { margin: 6px 0 0; color: #86909c; font-size: 12px; text-align: center; }
.compliance-status { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #4e5969; font-size: 13px; }
.compliance-status .ready { color: #00b42a; }
.compliance-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.compliance-note { margin-top: 10px; padding: 9px 11px; border-left: 3px solid #ff7d00; background: #fff7e8; color: #4e5969; font-size: 13px; line-height: 1.45; }
.compliance-preview-card .compliance-note { margin-top: auto; }
.compliance-store-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 14px; background: #e8f3ff; color: #165dff; font-size: 13px; }
.compliance-font-size-field label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.compliance-font-size-field output { color: #165dff; font-variant-numeric: tabular-nums; }
.compliance-font-slider { width: 100%; height: 30px; margin: 0; accent-color: #165dff; }
.compliance-font-size-field .field-help { display: block; margin-top: 1px; color: #86909c; font-size: 12px; line-height: 1.3; }
@media (max-width: 1180px) { .compliance-layout { grid-template-columns: 1fr; } .compliance-preview-card { width: 100%; max-width: 440px; } }
@media (max-width: 680px) { .compliance-form-grid { grid-template-columns: 1fr; } .compliance-form-grid .field.full { grid-column: auto; } }
