/* Isolated emergency UI. The approved iHUB composition is unchanged. */
.ihub-fallback[hidden],.ihub-fallback [hidden]{display:none!important}
.ihub-fallback{font-family:Arial,"Segoe UI",sans-serif;direction:rtl;color:#122f60;box-sizing:border-box}
.ihub-fallback *{box-sizing:border-box}
.ihub-fallback-dialog{width:min(1160px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #c4ddfa;border-radius:22px;background:#f3f9ff;box-shadow:0 20px 80px #063c8060;overflow:hidden}
.ihub-fallback-dialog::backdrop{background:#072957a8;backdrop-filter:blur(6px)}
.ihub-fallback-dialog[open]{display:flex;flex-direction:column}
.ihub-fallback button,.ihub-fallback a{font:inherit;font-size:14px;line-height:1.5;border-radius:10px;cursor:pointer}
.ihub-fallback button:focus-visible,.ihub-fallback a:focus-visible{outline:3px solid #0a74fb;outline-offset:3px}
.ihub-fallback-actions .ihub-fallback-close{border:1px solid #cbdcf1;background:#fff;color:#163c70;padding:0;width:38px;height:42px;font-size:26px;line-height:1;flex:0 0 38px}
.ihub-fallback-question{display:flex;align-items:center;gap:12px;padding:10px 22px;background:#e9f3ff;flex-shrink:0}
.ihub-fallback-question label{font-size:14px;white-space:nowrap}
.ihub-fallback-question textarea{width:100%;min-height:42px;max-height:72px;resize:none;border:1px solid #cfdef1;border-radius:9px;padding:7px 10px;background:#fff;color:#234065;font:14px/1.5 Arial,sans-serif}
.ihub-fallback-question button{border:1px solid #aac9f2;background:#fff;color:#164c91;padding:8px 12px;white-space:nowrap}
.ihub-fallback-frame-host{position:relative;min-height:160px;flex:1;background:#fff;overflow:auto}
.ihub-fallback-frame-host iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.ihub-fallback-frame-message{font-size:16px;line-height:1.8;margin:24px;text-align:center}
.ihub-fallback-footer{padding:10px 22px 14px;border-top:1px solid #d9e7f8;flex-shrink:0;background:#fff}
.ihub-fallback-status{font-size:14px;line-height:1.5;margin:0 0 10px;color:#506784;min-height:21px}
.ihub-fallback-status:empty{display:none}
.ihub-fallback-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ihub-fallback-primary{border:1px solid #1266d9;background:#1266d9;color:#fff;text-decoration:none;padding:10px 16px;text-align:center}
.ihub-fallback-secondary{border:1px solid #b2cdf1;background:#edf5ff;color:#164c91;padding:10px 16px}
.ihub-fallback button:disabled{opacity:.6;cursor:wait}
.ihub-fallback-banner{position:fixed;z-index:10;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;width:max-content;max-width:calc(100vw - 24px);padding:10px 16px;border:1px solid #b9d8ff;border-radius:14px;background:#fff;box-shadow:0 5px 24px #063c8030;font-size:14px}
.ihub-fallback-banner button{padding:6px 12px;border:1px solid #1266d9;background:#1266d9;color:white}
.ihub-fallback-banner a{color:#1266d9}
@media(max-width:760px){
  .ihub-fallback-dialog{width:100vw;height:100dvh;border:0;border-radius:0}
  .ihub-fallback-question{padding:8px 14px;gap:8px}
  .ihub-fallback-question label{display:none}
  .ihub-fallback-question textarea{font-size:16px}
  .ihub-fallback-footer{padding:10px 14px calc(12px + env(safe-area-inset-bottom))}
  .ihub-fallback-actions>*{flex:1;white-space:nowrap;font-size:14px}
}
