.st3-dialog { width: min(850px, 92vw); max-height: 86vh; overflow: auto; color: #172b3a; background: #fff; border: 1px solid #97a9b8; border-radius: 8px; padding: 20px; box-shadow: 0 12px 60px #172b3a44; }
.st3-dialog::backdrop { background: #18253366; }
.st3-dialog h2, .st3-dialog h3, .st3-dialog h4, .st3-dialog label, .st3-dialog p, .st3-dialog small { text-align: right; }
.st3-dialog label { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 5px 0; }
.st3-dialog input, .st3-dialog select { font: inherit; max-width: 240px; padding: 5px; }
.st3-dialog button { font: inherit; cursor: pointer; padding: 7px 12px; margin: 4px; border: 1px solid #8da1b5; border-radius: 4px; color: #183b5a; background: #f4f8fc; }
.st3-dialog button:focus-visible, .st3-dialog input:focus-visible, .st3-dialog select:focus-visible { outline: 3px solid #287ac5; outline-offset: 2px; }
.st3-dialog [role="tab"][aria-selected="true"] { background: #dceeff; }
.st3-dialog [role="tabpanel"]:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.st3-field { border-bottom: 1px solid #d8e1ea; padding: 6px; }
.st3-field small { display: inline-block; padding: 5px; color: #546b80; }
.st3-dialog [role="alert"] { color: #9d2434; }
.st3-dialog pre { overflow: auto; max-height: 250px; background: #f0f4f8; padding: 10px; }
.st3-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.st3-preview { padding: 20px; border: 1px solid #ccc; }
#st3-typing { font-size: 12px; color: var(--text); }
.st3-format-dialog[open] { display: flex; flex-direction: column; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; }
.st3-format-dialog > h2 { flex: none; margin: 0; padding: 16px 20px; }
.st3-dialog-body { min-height: 0; overflow: auto; padding: 0 20px 12px; }
.st3-dialog-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding: 8px 16px; border-top: 1px solid #d8e1ea; background: inherit; }
.st3-dialog-actions [role="alert"] { flex-basis: 100%; margin: 0; }
.st3-dialog-actions [role="alert"]:empty { display: none; }
@media print { .st3-dialog { display: none; } }
