.password-rules { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #b9d7cf; border-radius: 11px; background: #f0f8f5; color: #315d57; }
.password-rules b { font-size: 14px; }
.password-rules span { font-weight: 700; }
.password-rules span.invalid { color: #b42318; }
.password-rules span.valid { color: var(--green); }
.password-rules small { font-size: 12px; }
.preview-dialog { width: min(1040px, calc(100% - 24px)); height: min(94vh, 960px); max-width: none; }
.preview-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; background: #eef2f0; }
.preview-shell > header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 56px 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-shell > header span { color: var(--green); font-size: 12px; font-weight: 800; }
.preview-shell > header h2 { margin: 2px 0 0; font-size: 21px; }
.document-viewer { min-height: 0; overflow: auto; padding: 18px; display: grid; place-items: start center; position: relative; }
.document-viewer img { display: block; max-width: 100%; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.14); user-select: none; -webkit-user-drag: none; }
.document-text { max-width: 820px; width: 100%; padding: 26px; background: #fff; white-space: pre-wrap; line-height: 1.85; }
.preview-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; background: #fff; color: var(--ink); }
.preview-notice { margin: 0; padding: 8px 18px 12px; text-align: center; background: #fff; color: var(--muted); font-size: 12px; }
.site-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.4fr); gap: 8px 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.site-row b { color: var(--ink); }
.site-row span { color: var(--muted); }
.trial-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.smart-box textarea { width: 100%; min-height: 92px; border: 1px solid #cfdad7; border-radius: 9px; padding: 11px 12px; font: inherit; resize: vertical; }
.search-explain { padding: 12px 14px; background: var(--mint); border-radius: 10px; color: var(--green); font-size: 13px; }
@media (max-width: 620px) { .preview-dialog { height: 96vh; } .document-viewer { padding: 8px; } .site-row { grid-template-columns: 1fr; } .preview-shell > header h2 { font-size: 17px; } }
