/* SVG placement hints and accessible dialog. Independent of the optional compact panel. */
#smo-generator-form select.smo-text-layout[hidden] { display: none !important; }
#smo-generator-form .smo-placement-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #fff;
    color: #17304e;
    font: 600 12px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    cursor: pointer;
}
#smo-generator-form .smo-placement-trigger:hover { border-color: #8fa6ef; background: #fbfcff; }
#smo-generator-form .smo-placement-trigger:focus-visible,
.smo-placement-dialog button:focus-visible,
.smo-placement-dialog input:focus-visible { outline: 3px solid rgba(49,94,251,.25); outline-offset: 2px; border-color: #315efb; }
#smo-generator-form .smo-placement-trigger:disabled { opacity: .5; cursor: not-allowed; }
.smo-placement-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; background: #f4f7ff; }
.smo-placement-miniature { display: block; width: 100%; height: 100%; }
.smo-placement-trigger-label { flex: 1; min-width: 0; }
.smo-placement-chevron { margin-left: auto; color: #62748f; font-size: 17px; }
.smo-placement-dialog {
    width: min(790px, calc(100vw - 28px));
    height: min(790px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #14243d;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 24px 80px rgba(14,31,65,.3);
    overflow: hidden;
}
.smo-placement-dialog *, .smo-placement-dialog *::before, .smo-placement-dialog *::after { box-sizing: border-box; }
.smo-placement-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.smo-placement-dialog:not([open]) { display: none; }
.smo-placement-dialog::backdrop { background: rgba(15,28,55,.55); }
.smo-placement-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; border-bottom: 1px solid #e0e7f3; background: #f7f9ff; }
.smo-placement-dialog-head small { color: #315efb; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.smo-placement-dialog-head h2 { margin: 5px 0 6px; color: #14243d; font-size: 23px; line-height: 1.2; }
.smo-placement-dialog-head p { margin: 0; color: #65758b; font-size: 12px; line-height: 1.4; }
.smo-placement-dialog .smo-placement-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #d3dded; border-radius: 10px; background: #fff; color: #52647e; font-size: 24px; line-height: 1; cursor: pointer; }
.smo-placement-search { padding: 12px 22px; border-bottom: 1px solid #e9eef6; }
.smo-placement-search input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d5deee; border-radius: 10px; background: #fff; color: #17304e; font: inherit; font-size: 13px; }
.smo-placement-list { min-height: 0; padding: 4px 22px 18px; overflow: auto; overscroll-behavior: contain; }
.smo-placement-group { margin: 15px 0 0; }
.smo-placement-group h3 { margin: 0 0 8px; color: #52647e; font-size: 12px; line-height: 1.3; }
.smo-placement-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.smo-placement-dialog .smo-placement-option { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 60px; padding: 7px 9px; border: 1px solid #dce4f1; border-radius: 11px; background: #fff; color: #203654; font: 600 12px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; cursor: pointer; }
.smo-placement-option .smo-placement-icon { flex-basis: 42px; width: 42px; height: 42px; }
.smo-placement-option-label { flex: 1; min-width: 0; }
.smo-placement-dialog .smo-placement-option:hover:not(:disabled) { border-color: #91a8ef; background: #f8faff; }
.smo-placement-dialog .smo-placement-option[aria-pressed="true"] { border-color: #5279f3; background: #eef3ff; box-shadow: inset 0 0 0 1px #5279f3; }
.smo-placement-check { flex: 0 0 14px; color: transparent; font-size: 15px; font-weight: 900; }
.smo-placement-option[aria-pressed="true"] .smo-placement-check { color: #244ee9; }
.smo-placement-dialog .smo-placement-option:disabled { opacity: .4; cursor: not-allowed; background: #f7f8fb; }
.smo-placement-empty { padding: 28px 8px; color: #65758b; font-size: 13px; text-align: center; }
.smo-placement-dialog footer { padding: 12px 22px; border-top: 1px solid #e0e7f3; background: #f7f9ff; color: #65758b; font-size: 11px; line-height: 1.4; }
@media(max-width:600px) {
    .smo-placement-dialog { width: calc(100vw - 18px); height: calc(100dvh - 18px); max-height: calc(100dvh - 18px); border-radius: 15px; }
    .smo-placement-dialog-head { padding: 17px 15px 13px; }
    .smo-placement-dialog-head h2 { font-size: 20px; }
    .smo-placement-search { padding: 11px 15px; }
    .smo-placement-list { padding: 3px 15px 15px; }
    .smo-placement-options { grid-template-columns: 1fr; }
    .smo-placement-dialog footer { padding: 11px 15px; }
}
