@import url("./refresh-buttons.css");
#portal-update-notice {
  position:fixed; z-index:1400; right:24px; bottom:24px; width:400px; max-width:calc(100vw - 32px);
  box-sizing:border-box; padding:22px; border:1px solid #e0e3ed; border-radius:18px;
  background:#fff; color:#182230; box-shadow:0 12px 48px rgb(24 34 48 / 14%),0 2px 8px rgb(24 34 48 / 4%);
  font:14px/1.6 "Microsoft YaHei","PingFang SC",system-ui,sans-serif; text-align:left;
}
#portal-update-notice[hidden] { display:none !important; }
#portal-update-notice .portal-update-heading { display:flex; align-items:flex-start; gap:14px; }
#portal-update-notice .portal-update-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; color:#4f46e5; background:#eef2ff; }
#portal-update-notice svg { display:block; width:23px; height:23px; }
#portal-update-notice strong { display:block; font-size:17px; line-height:1.45; font-weight:700; color:#182230; }
#portal-update-notice p { margin:5px 0 0; font:inherit; color:#667085; }
#portal-update-notice .portal-update-hint { margin:16px 0; padding:10px 12px; background:#f7f8fb; border-radius:9px; font-size:13px; }
#portal-update-notice .portal-update-error { color:#b42318; margin:0 0 12px; }
#portal-update-notice .portal-update-actions { display:flex; justify-content:flex-end; gap:10px; }
#portal-update-notice button { display:inline-flex; align-items:center; justify-content:center; width:auto; min-height:40px; margin:0; padding:9px 17px; border:1px solid #e4e7ec; border-radius:10px; background:#fff; color:#475467; font:inherit; font-weight:500; line-height:1.4; box-shadow:none; cursor:pointer; transform:none; }
#portal-update-notice button:hover { background:#f6f7fb; }
#portal-update-notice button[data-update-refresh] { background:#4f46e5; border-color:#4f46e5; color:#fff; }
#portal-update-notice button[data-update-refresh]:hover { background:#4338ca; }
#portal-update-notice button:focus-visible { outline:3px solid #a5b4fc; outline-offset:3px; }
#portal-update-notice button:disabled { opacity:.65; cursor:wait; }
@media(max-width:600px) {
  #portal-update-notice { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); padding:18px; }
  #portal-update-notice .portal-update-actions button { flex:1; }
}

#portal-version-entry{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:fit-content;max-width:calc(100vw - 32px);min-height:36px;margin:0;padding:6px 10px;border:1px solid #e4e7ec;border-radius:7px;background:#fffffff2;color:#475467;font:600 16px/1.5 "Microsoft YaHei",system-ui,sans-serif;white-space:nowrap;text-align:center;cursor:pointer;transform:none}
#portal-version-entry .portal-version-icon{display:block;flex:none;width:18px;height:18px}
#portal-version-entry .portal-version-label{min-width:0;overflow-wrap:anywhere}
body:has(>[data-ai-service-assistant]:not([hidden])) #portal-version-entry{right:calc(92px + env(safe-area-inset-right))}
#portal-version-entry:hover{background:#f6f7fb;color:#344054}
#portal-version-entry:focus-visible{outline:2px solid #667085;outline-offset:2px}
#portal-release-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;animation:none;transform:none;opacity:1;width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #e4e7ec;border-radius:18px;background:#fff;color:#182230;box-shadow:0 24px 100px #0003;font:14px/1.7 "Microsoft YaHei",system-ui,sans-serif;overflow:hidden}
#portal-release-dialog::backdrop{background:#18223077;animation:none;backdrop-filter:blur(3px)}#portal-release-dialog header{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-bottom:1px solid #eaecf0}#portal-release-dialog small{color:#667085;font-size:12px}#portal-release-dialog h2{margin:5px 0 0;font-size:22px;line-height:1.4;color:#182230}#portal-release-dialog h3{margin:0 0 12px;font-size:16px;color:#182230}#portal-release-dialog .portal-release-body{padding:24px 28px;max-height:calc(100dvh - 260px);overflow:auto}#portal-release-dialog ul{padding-left:20px;margin:0}#portal-release-dialog li{margin:9px 0}#portal-release-dialog footer{display:flex;justify-content:flex-end;padding:18px 28px;border-top:1px solid #eaecf0}#portal-release-dialog button{width:auto;min-height:38px;margin:0;padding:8px 16px;border:1px solid #e4e7ec;border-radius:8px;background:#fff;color:#475467;font:inherit;cursor:pointer}#portal-release-dialog footer button{background:#4f46e5;border-color:#4f46e5;color:#fff}
@media(max-width:600px){#portal-release-dialog header,#portal-release-dialog .portal-release-body,#portal-release-dialog footer{padding:18px 20px}}
#portal-release-dialog .portal-release-client{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid #eaecf0;font-size:16px}
#portal-release-dialog .portal-release-client a{color:#4338ca;font-weight:600;text-underline-offset:3px}
