html.hk-auth-loading body{visibility:hidden}
html.hk-auth-loading::before{
  content:"";position:fixed;inset:0;z-index:2147483646;background:#f4f7f5;
  pointer-events:none
}
html.hk-auth-loading::after{
  content:"";position:fixed;left:50%;top:50%;z-index:2147483647;
  width:38px;height:38px;margin:-19px 0 0 -19px;
  border:4px solid #d9e6df;border-top-color:#1f604c;border-radius:50%;
  animation:hk-spin .8s linear infinite;pointer-events:none
}
html.hk-auth-ready body{visibility:visible}
html.hk-auth-failed body{visibility:hidden}
html.hk-auth-failed::before{
  content:"Cloud connection could not be verified.";
  position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;
  padding:32px;background:#f4f7f5;color:#244c3d;
  font:700 18px/1.45 Arial,Helvetica,sans-serif;text-align:center
}
html.hk-auth-failed[data-hk-auth-error]::before{
  content:attr(data-hk-auth-error)
}
@keyframes hk-spin{to{transform:rotate(360deg)}}

/* Account controls are flex items in the shared topbar. No reserved blank area. */

.hk-cloud-ui{
  display:contents!important;
  color:white;
  font-family:Arial,Helvetica,sans-serif;
}
.hk-cloud-state,.hk-save-state{
  display:flex;align-items:center;gap:7px;min-height:38px;padding:6px 9px;
  border:1px solid rgba(255,255,255,.18);border-radius:8px;
  background:rgba(255,255,255,.07)
}
.hk-cloud-state{order:8!important}
.hk-save-state{order:9!important}
.hk-account-wrap{position:relative;order:10!important}
.hk-cloud-state-dot{
  width:8px;height:8px;border-radius:50%;background:#56d596;
  box-shadow:0 0 0 3px rgba(86,213,150,.14)
}
.hk-cloud-state.offline .hk-cloud-state-dot{
  background:#f2c45f;box-shadow:0 0 0 3px rgba(242,196,95,.14)
}
.hk-cloud-state-label{font-size:12px;font-weight:800}
.hk-save-icon{
  display:grid;place-items:center;width:18px;height:18px;border-radius:50%;
  background:#d9f4e5;color:#1b6c4c;font-size:11px;font-weight:900
}
.hk-save-state.saving .hk-save-icon{
  color:transparent;background:transparent;border:2px solid rgba(255,255,255,.35);
  border-top-color:white;animation:hk-spin .75s linear infinite
}
.hk-save-copy,.hk-account-text{display:grid;min-width:0;line-height:1.05}
.hk-save-copy strong,.hk-account-text strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px
}
.hk-save-copy small,.hk-account-text small{
  margin-top:3px;color:rgba(255,255,255,.68);font-size:9px
}
.hk-account-button{
  display:flex;align-items:center;gap:8px;min-height:38px;max-width:190px;
  padding:5px 9px 5px 6px;border:1px solid rgba(255,255,255,.24);
  border-radius:8px;background:rgba(255,255,255,.08);color:white;font:inherit;cursor:pointer
}
.hk-avatar{
  display:grid;place-items:center;flex:0 0 auto;width:27px;height:27px;
  border-radius:50%;background:#f1c469;color:#194333;font-size:12px;font-weight:900
}
.hk-account-text{max-width:118px;text-align:left}
.hk-account-caret{opacity:.75}
.hk-account-menu{
  position:absolute;right:0;top:calc(100% + 8px);z-index:100000;width:245px;
  padding:8px;border:1px solid #cbd9d2;border-radius:11px;background:white;
  color:#174a3b;box-shadow:0 12px 35px rgba(23,74,59,.24)
}
.hk-account-summary{padding:9px 10px;border-bottom:1px solid #e5ece8}
.hk-account-summary strong,.hk-account-summary span{
  display:block;overflow:hidden;text-overflow:ellipsis
}
.hk-account-summary span{margin-top:3px;color:#687a71;font-size:12px;text-transform:capitalize}
.hk-account-menu a,.hk-account-menu button{
  display:block;width:100%;padding:10px;border:0;border-radius:7px;background:white;
  color:#174a3b;text-align:left;text-decoration:none;font:inherit;cursor:pointer
}
.hk-account-menu a:hover,.hk-account-menu button:hover{background:#edf6f1}
.hk-password-dialog{width:min(440px,calc(100% - 28px));padding:0;border:0;border-radius:14px;color:#173d31;box-shadow:0 24px 70px rgba(11,45,34,.28)}
.hk-password-dialog::backdrop{background:rgba(12,37,29,.46)}
.hk-password-form{display:grid;gap:14px;padding:22px}
.hk-password-form header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e0e9e4;padding-bottom:13px}
.hk-password-form header small{color:#65776e;font-size:10px;font-weight:800;letter-spacing:.12em}.hk-password-form h2{margin:3px 0 0;font-size:22px}.hk-password-form header button{border:0;background:#edf3f0;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}
.hk-password-form p{margin:0;color:#65776e;font-size:13px;line-height:1.45}.hk-password-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#425c51}.hk-password-form input{width:100%;height:44px;border:1px solid #b8c9c0;border-radius:8px;padding:0 11px;font:inherit}.hk-password-form footer{display:flex;justify-content:flex-end;gap:9px}.hk-password-form footer button{height:42px;border:1px solid #8eaea0;border-radius:8px;background:#fff;color:#225b46;padding:0 15px;font-weight:800;cursor:pointer}.hk-password-form footer .primary{background:#1f604c;color:#fff;border-color:#1f604c}.hk-password-message{min-height:18px;font-size:12px;color:#65776e}.hk-password-message.bad{color:#a6352a}.hk-password-message.good{color:#1e6d4f}.hk-password-form button:disabled{opacity:.55;cursor:wait}
@media(max-width:1450px){
  .hk-save-state{display:none!important}
  .hk-account-text{display:none}
}
@media(max-width:1180px){
  .hk-cloud-state{display:none!important}
  .hk-account-wrap{order:7!important}
  .hk-account-button{border-radius:999px;max-width:none}
  .hk-account-menu{top:calc(100% + 8px)}
}
@media(max-width:760px){
  .hk-cloud-state,.hk-save-state{display:none!important}
  .hk-account-wrap{order:1!important;margin-left:auto!important}
  .hk-account-button{
    width:38px;height:38px;min-height:38px;max-width:38px;
    padding:0;border-radius:999px;justify-content:center
  }
  .hk-avatar{width:30px;height:30px;font-size:12px}
  .hk-account-text,.hk-account-caret{display:none!important}
  .hk-account-menu{
    position:fixed;right:10px;top:54px;width:min(245px,calc(100vw - 20px))
  }
}
