/* New tools only. Existing page colors, fonts, backgrounds and composition stay intact. */
.ifi-ux-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.035);color:#f4f2f7;font:500 13px/1.4 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer;touch-action:manipulation}
.ifi-ux-button:hover{border-color:rgba(168,85,247,.5);background:rgba(168,85,247,.1)}
.ifi-ux-button:disabled{opacity:.5;cursor:default}
.ifi-ux-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
.ifi-ux-primary{background:#9230e5;border-color:#9230e5;color:#fff}
.ifi-ux-primary:hover{background:#a03def}
.ifi-ux-button:focus-visible,.ifi-ux-dialog :is(button,input,a):focus-visible{outline:2px solid #c084fc;outline-offset:3px}
.ifi-ux-dialog{margin:10vh auto auto;width:min(560px,calc(100% - 32px));max-height:82dvh;padding:0;overflow:auto;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:#0d0c11;color:#f4f2f7;box-shadow:0 24px 100px #0007;font:400 14px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.ifi-ux-dialog::backdrop{background:rgba(0,0,0,.72)}
.ifi-ux-dialog .ifi-ux-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.09)}
.ifi-ux-dialog h2{font-size:19px;line-height:1.25;letter-spacing:-.02em;font-weight:600;margin:0}
.ifi-ux-dialog h3{font-size:16px;margin:0 0 12px;font-weight:600}
.ifi-ux-dialog .ifi-ux-close{width:42px;height:42px;padding:10px;flex-shrink:0}
.ifi-ux-body{padding:22px}
.ifi-ux-dialog p{color:#b0a5bc;line-height:1.7;margin:0 0 16px}
.ifi-ux-dialog label{display:block;font-size:12px;color:#b0a5bc;margin-bottom:8px}
.ifi-ux-input{display:block;width:100%;min-height:44px;padding:11px 13px;background:#15121b;color:#f4f2f7;border:1px solid rgba(255,255,255,.14);border-radius:10px;font:inherit;margin:0 0 16px}
.ifi-ux-input::placeholder{color:#8f839f;opacity:1}
.ifi-ux-dialog a.ifi-ux-button{text-decoration:none}
.ifi-ux-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ifi-ux-results{display:flex;flex-direction:column;gap:5px;max-height:45dvh;overflow-y:auto}
.ifi-ux-result{justify-content:space-between;text-align:left;width:100%;background:transparent;border-color:transparent;min-height:50px}
.ifi-ux-result small{display:block;font-size:11px;color:#8f839f;font-weight:400;margin-top:3px}
.ifi-ux-result [data-hint]{font-size:11px;color:#8f839f}
.ifi-ux-result[aria-current=true]{border-color:rgba(168,85,247,.4);background:rgba(168,85,247,.1)}
.ifi-ux-empty{padding:14px 0;margin:0!important}
.ifi-ux-caption{font-size:12px;color:#8f839f;line-height:1.7;margin:14px 0 0!important}
.ifi-ux-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.ifi-ux-choice .ifi-ux-button{justify-content:flex-start;min-height:52px}
.ifi-ux-guide-step{padding:16px 0;border-top:1px solid rgba(255,255,255,.09)}
.ifi-ux-guide-step strong{display:block;color:#f4f2f7;font-size:14px;margin-bottom:7px;font-weight:600}
.ifi-ux-guide-step p{font-size:13px;margin:0 0 12px}
.ifi-ux-guide-meta{display:flex;gap:6px;flex-wrap:wrap;color:#c4b5fd;font-size:12px;margin-bottom:18px}
.ifi-ux-detail-list{padding:0;margin:12px 0 20px;list-style:none;border:1px solid rgba(255,255,255,.1);border-radius:10px;overflow:hidden}
.ifi-ux-detail-list li{padding:9px 12px;font-size:12px;color:#b0a5bc;overflow-wrap:anywhere;border-bottom:1px solid rgba(255,255,255,.06)}
.ifi-ux-detail-list li:last-child{border:0}
.ifi-ux-nav-search{width:100%;justify-content:space-between;margin:0 0 14px;text-align:left}
.ifi-ux-mobile-search{width:42px;height:42px;padding:10px}
.ifi-ux-mobile-search .ifi-ux-search-label{display:none}
.ifi-ux-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 18px}
.ifi-ux-tools .ifi-ux-tool-title{font-size:12px;color:#8f839f;flex-basis:100%;margin-bottom:2px}
.ifi-ux-tools .ifi-ux-saved-preset{display:inline-flex;border:1px solid rgba(168,85,247,.3);border-radius:10px;overflow:hidden;background:rgba(168,85,247,.07)}
.ifi-ux-saved-preset .ifi-ux-button{border:0;border-radius:0;background:transparent;min-height:38px}
.ifi-ux-saved-preset .ifi-ux-remove-preset{width:34px;min-width:34px;padding:6px;border-left:1px solid rgba(168,85,247,.2)}
.ifi-ux-app-launcher{margin:16px 0 22px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ifi-ux-app-launcher p{font-size:12px;color:#8f839f;margin:0}
@media(max-width:640px){.ifi-ux-dialog{margin-top:6vh;max-height:88dvh}.ifi-ux-body{padding:18px}.ifi-ux-dialog .ifi-ux-dialog-head{padding:16px 18px}.ifi-ux-tools .ifi-ux-button{font-size:12px;padding:9px 11px;min-height:42px}.ifi-ux-confirm-actions .ifi-ux-button{flex:1}.ifi-ux-guide-meta{line-height:1.6}}
@media(prefers-reduced-motion:reduce){.ifi-ux-dialog,.ifi-ux-button{scroll-behavior:auto;transition:none}}
