:root{
  --hfb-primary:#222b55;
  --hfb-secondary:#0f1679;
  --hfb-accent:#cfefff;
  --hfb-highlight:#f4d35e;
  --hfb-bg:#f4f6f9;
  --hfb-surface:#ffffff;
  --hfb-surface-soft:#f8fafc;
  --hfb-line:#e5e9f0;
  --hfb-line-strong:#d7dde7;
  --hfb-text:#20263a;
  --hfb-muted:#737c8f;
  --hfb-success:#2f8a5c;
  --hfb-danger:#b34b4b;
  --hfb-sidebar:272px;
  --hfb-radius:16px;
  --hfb-shadow:0 10px 32px rgba(27,39,68,.07);
}

html,body{margin:0;padding:0;min-height:100%;}
body.hfb-standalone{min-height:100vh;background:var(--hfb-bg);overflow-x:hidden;}
body.hfb-standalone,body.hfb-standalone button,body.hfb-standalone input,body.hfb-standalone textarea,body.hfb-standalone select{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.hfb-app,.hfb-login-shell{color:var(--hfb-text);}
.hfb-app *,.hfb-login-shell *{box-sizing:border-box;}
.hfb-app a,.hfb-login-shell a{color:inherit;}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}

/* Standalone application shell */
.hfb-app{
  min-height:100vh;
  width:100%;
  display:grid;
  grid-template-columns:var(--hfb-sidebar) minmax(0,1fr);
  background:var(--hfb-bg);
}
.hfb-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  overflow:auto;
  background:linear-gradient(180deg,var(--hfb-primary) 0%,#182044 100%);
  color:#fff;
  border-right:1px solid rgba(255,255,255,.06);
  z-index:30;
}
.hfb-brand{
  min-height:104px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:24px 22px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.hfb-brand img{width:42px;height:42px;object-fit:contain;flex:0 0 auto;}
.hfb-brand-mark{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  border:1px solid rgba(255,255,255,.45);color:#fff;font-family:Georgia,serif;font-size:17px;letter-spacing:-.4px;
}
.hfb-brand strong{display:block;font-size:13px;line-height:1.2;color:#fff;font-weight:750;letter-spacing:-.15px;}
.hfb-brand small{display:block;margin-top:4px;font-size:9px;line-height:1.35;color:rgba(255,255,255,.5);}
.hfb-sidebar nav{padding:20px 13px;display:grid;gap:4px;}
.hfb-sidebar nav a{
  min-height:44px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:10px;
  text-decoration:none;color:rgba(255,255,255,.66);font-size:12px;font-weight:650;transition:.16s ease;
}
.hfb-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;}
.hfb-sidebar nav a.active{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);}
.hfb-nav-icon{width:18px;height:18px;display:grid;place-items:center;color:rgba(255,255,255,.72);}
.hfb-nav-icon svg{width:18px;height:18px;display:block;fill:currentColor;}
.hfb-sidebar nav a.active .hfb-nav-icon{color:var(--hfb-highlight);}
.hfb-userbox{
  margin:auto 13px 14px;padding:14px;border-radius:12px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);
}
.hfb-userbox strong{display:block;font-size:11px;line-height:1.3;color:#fff;}
.hfb-userbox small{display:block;margin-top:3px;font-size:9px;line-height:1.4;color:rgba(255,255,255,.5);}
.hfb-userbox a{display:inline-block;margin-top:10px;font-size:9px;font-weight:700;text-decoration:none;color:rgba(255,255,255,.72);}
.hfb-userbox a:hover{color:#fff;}

.hfb-main{min-width:0;min-height:100vh;background:var(--hfb-bg);}
.hfb-topbar{
  height:66px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:0 32px;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hfb-line);
}
.hfb-topbar-context{display:flex;align-items:center;gap:9px;min-width:0;font-size:11px;color:var(--hfb-muted);}
.hfb-topbar-context span,.hfb-topbar-context strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hfb-topbar-context b{color:#b4bcc9;font-weight:400;}
.hfb-topbar-context strong{color:var(--hfb-primary);font-weight:750;}
.hfb-topbar-right{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--hfb-muted);white-space:nowrap;}
.hfb-live-dot{width:7px;height:7px;border-radius:50%;background:#5ca879;box-shadow:0 0 0 4px rgba(92,168,121,.1);}
.hfb-topbar-avatar{width:30px;height:30px;margin-left:8px;border-radius:50%;display:grid;place-items:center;background:var(--hfb-primary);color:#fff;font-size:10px;font-weight:800;}
.hfb-mobile-head{display:none;}
.hfb-main-inner{width:min(1260px,100%);margin:0 auto;padding:36px 36px 64px;}

/* Heading system */
.hfb-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px;}
.hfb-page-head>div:first-child{max-width:760px;}
.hfb-kicker{display:block;margin-bottom:7px;font-size:9px;line-height:1.2;letter-spacing:1.45px;text-transform:uppercase;font-weight:800;color:var(--hfb-secondary);}
.hfb-page-head h1{margin:0;color:var(--hfb-primary);font-size:31px;line-height:1.08;letter-spacing:-.8px;font-weight:760;}
.hfb-page-head p{margin:9px 0 0;max-width:680px;font-size:12px;line-height:1.6;color:var(--hfb-muted);}
.hfb-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--hfb-line);border-radius:999px;background:#fff;font-size:9px;text-transform:uppercase;letter-spacing:.75px;font-weight:800;color:#70798c;}
.hfb-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#a8b0bd;}
.hfb-status.published{color:#2c704c;border-color:#cfe6d8;background:#f7fbf8;}
.hfb-status.published:before{background:#4b9b69;}

/* Buttons */
.hfb-btn{
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--hfb-line-strong);
  border-radius:9px;padding:0 14px;background:#fff;color:var(--hfb-primary);font-size:10px;line-height:1;font-weight:800;text-decoration:none;cursor:pointer;
  box-shadow:0 1px 1px rgba(20,33,61,.03);transition:.15s ease;
}
.hfb-btn:hover{transform:translateY(-1px);border-color:#bdc6d5;box-shadow:0 5px 16px rgba(27,39,68,.08);}
.hfb-btn-primary{background:var(--hfb-primary);border-color:var(--hfb-primary);color:#fff;}
.hfb-btn-primary:hover{filter:brightness(1.06);border-color:var(--hfb-primary);}
.hfb-btn-light{background:#fff;border-color:rgba(255,255,255,.25);color:var(--hfb-primary);}
.hfb-btn-danger{border-color:#e1c8c8;color:#9f4242;background:#fff;}
.hfb-link-btn{border:0;background:none;padding:0;color:var(--hfb-secondary);font-size:9px;font-weight:800;cursor:pointer;text-decoration:none;}
.hfb-link-btn:hover{text-decoration:underline;}

/* Dashboard */
.hfb-week-switch{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:0 0 18px;padding:10px 13px;background:#fff;border:1px solid var(--hfb-line);border-radius:11px;
}
.hfb-week-switch a{font-size:9px;color:var(--hfb-secondary);text-decoration:none;font-weight:750;}
.hfb-week-switch a:last-child{text-align:right;}
.hfb-week-switch strong{font-size:10px;color:var(--hfb-primary);font-weight:750;}
.hfb-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px;}
.hfb-stat-grid>div{padding:17px 18px;background:#fff;border:1px solid var(--hfb-line);border-radius:13px;box-shadow:0 2px 10px rgba(27,39,68,.025);}
.hfb-stat-grid strong{display:block;color:var(--hfb-primary);font-size:22px;line-height:1;font-weight:760;letter-spacing:-.6px;}
.hfb-stat-grid span{display:block;margin-top:5px;font-size:8.5px;text-transform:uppercase;letter-spacing:.85px;font-weight:800;color:var(--hfb-muted);}
.hfb-grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;}
.hfb-panel{background:#fff;border:1px solid var(--hfb-line);border-radius:var(--hfb-radius);padding:22px;box-shadow:0 3px 18px rgba(27,39,68,.035);margin-bottom:18px;}
.hfb-panel h2,.hfb-publish-strip h2,.hfb-publish-box h2{margin:2px 0 14px;color:var(--hfb-primary);font-size:18px;line-height:1.25;letter-spacing:-.3px;font-weight:750;}
.hfb-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.hfb-section-list{border-top:1px solid var(--hfb-line-strong);}
.hfb-section-row{display:grid;grid-template-columns:10px minmax(0,1fr) 18px;gap:11px;align-items:center;padding:13px 2px;border-bottom:1px solid var(--hfb-line);text-decoration:none;color:inherit;transition:.15s ease;}
.hfb-section-row:hover{padding-left:7px;padding-right:7px;background:#fbfcfd;}
.hfb-section-row strong{display:block;font-size:11px;line-height:1.35;color:var(--hfb-primary);font-weight:720;}
.hfb-section-row small{display:block;margin-top:3px;font-size:8.5px;line-height:1.4;color:var(--hfb-muted);}
.hfb-section-row b{font-size:18px;color:#a6aebb;font-weight:400;}
.hfb-dot{width:7px;height:7px;border-radius:50%;background:#d6dce5;}
.hfb-dot.done{background:#53a06c;box-shadow:0 0 0 3px rgba(83,160,108,.08);}

/* Calendar */
.hfb-calendar-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.hfb-cal-col{min-width:0;border-top:2px solid var(--hfb-primary);padding-top:10px;}
.hfb-cal-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:5px;}
.hfb-cal-title strong{font-size:8.5px;text-transform:uppercase;letter-spacing:1px;color:var(--hfb-secondary);}
.hfb-cal-title span{font-size:8.5px;color:var(--hfb-muted);}
.hfb-cal-event{display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px;padding:10px 0;border-top:1px solid var(--hfb-line);}
.hfb-cal-date b,.hfb-cal-date span{display:block;}
.hfb-cal-date b{font-size:7px;text-transform:uppercase;letter-spacing:.7px;color:var(--hfb-muted);}
.hfb-cal-date span{font-size:18px;line-height:1.1;font-weight:650;color:var(--hfb-primary);}
.hfb-cal-event strong{display:block;font-size:9px;line-height:1.4;color:var(--hfb-primary);font-weight:700;}
.hfb-cal-event small{display:block;margin-top:3px;font-size:8px;line-height:1.4;color:var(--hfb-muted);}

/* Publisher zones */
.hfb-publish-strip{
  display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:18px;padding:23px 24px;border-radius:16px;
  background:linear-gradient(135deg,var(--hfb-primary),#171f44);color:#fff;box-shadow:0 10px 30px rgba(34,43,85,.14);
}
.hfb-publish-strip .hfb-kicker,.hfb-publish-box .hfb-kicker{color:rgba(255,255,255,.5);}
.hfb-publish-strip h2,.hfb-publish-box h2{color:#fff;margin-bottom:5px;}
.hfb-publish-strip p,.hfb-publish-box p{margin:0;font-size:10px;line-height:1.55;color:rgba(255,255,255,.65);}
.hfb-publish-strip .hfb-btn-primary{background:var(--hfb-highlight);border-color:var(--hfb-highlight);color:var(--hfb-primary);}
.hfb-publish-box{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:28px;align-items:center;margin-top:18px;padding:27px;border-radius:17px;
  background:linear-gradient(135deg,var(--hfb-primary),#171f44);color:#fff;box-shadow:0 12px 36px rgba(34,43,85,.16);
}
.hfb-delivery-actions{display:grid;gap:10px;}
.hfb-test-send-form{display:flex;align-items:end;gap:8px;}
.hfb-test-send-form label{flex:1;margin:0!important;text-transform:none!important;letter-spacing:0!important;color:inherit!important;font-size:9px!important;}
.hfb-test-send-form label>span{display:block;margin-bottom:6px;color:rgba(255,255,255,.62);font-size:8px;text-transform:uppercase;letter-spacing:.75px;font-weight:800;}
.hfb-test-send-form input{height:40px!important;margin:0!important;border-radius:8px!important;border-color:rgba(255,255,255,.16)!important;background:rgba(255,255,255,.1)!important;color:#fff!important;}
.hfb-test-send-form input::placeholder{color:rgba(255,255,255,.4);}
.hfb-test-send-form input:focus{border-color:rgba(255,255,255,.45)!important;box-shadow:0 0 0 3px rgba(255,255,255,.07)!important;}
.hfb-delivery-actions>form:last-child{display:flex;justify-content:flex-end;}
.hfb-publish-btn{width:100%;background:var(--hfb-highlight);border-color:var(--hfb-highlight);color:var(--hfb-primary);}

/* Forms */
.hfb-editor-form label,.hfb-user-edit label{display:block;margin-bottom:15px;font-size:8.5px;text-transform:uppercase;letter-spacing:.75px;font-weight:800;color:var(--hfb-primary);}
.hfb-editor-form input[type=text],.hfb-editor-form input[type=email],.hfb-editor-form input[type=url],.hfb-editor-form input[type=password],.hfb-editor-form textarea,.hfb-editor-form select,.hfb-user-edit input,.hfb-user-edit select,.hfb-user-edit textarea{
  width:100%;display:block;margin-top:7px;border:1px solid #cfd6e1;border-radius:9px;background:#fff;padding:11px 12px;color:var(--hfb-text);font:inherit;font-size:11px;outline:none;transition:.15s ease;
}
.hfb-editor-form textarea,.hfb-user-edit textarea{min-height:110px;resize:vertical;line-height:1.55;}
.hfb-editor-form input:focus,.hfb-editor-form textarea:focus,.hfb-editor-form select:focus,.hfb-user-edit input:focus,.hfb-user-edit textarea:focus,.hfb-user-edit select:focus{
  border-color:var(--hfb-secondary);box-shadow:0 0 0 3px rgba(15,22,121,.07);
}
.hfb-editor-form small{display:block;margin-top:5px;font-size:8px;line-height:1.45;text-transform:none;letter-spacing:0;color:var(--hfb-muted);font-weight:500;}
.hfb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.hfb-colours{grid-template-columns:repeat(4,1fr);}
.hfb-colours input[type=color]{height:44px;padding:4px;}
.hfb-editor-form fieldset,.hfb-user-edit fieldset{border:1px solid var(--hfb-line);border-radius:10px;padding:12px 13px;margin:0 0 15px;}
.hfb-editor-form legend,.hfb-user-edit legend{padding:0 5px;font-size:8.5px;font-weight:800;color:var(--hfb-primary);}
.hfb-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;}
.hfb-check{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;text-transform:none!important;letter-spacing:0!important;font-size:10px!important;font-weight:600!important;color:inherit!important;}
.hfb-check input{width:15px!important;height:15px!important;margin:0!important;accent-color:var(--hfb-secondary);}
.hfb-priority-edit{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;padding:18px 0;border-top:1px solid var(--hfb-line);}
.hfb-priority-edit:first-of-type{border-top:1px solid var(--hfb-line-strong);}
.hfb-priority-edit>span{padding-top:5px;font-size:20px;line-height:1;color:var(--hfb-secondary);font-weight:650;letter-spacing:-.7px;}
.hfb-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px;}
.hfb-sticky-actions{position:sticky;bottom:14px;z-index:15;display:flex;justify-content:flex-end;gap:8px;width:max-content;margin:0 0 18px auto;padding:7px;border:1px solid var(--hfb-line);border-radius:12px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:0 10px 34px rgba(28,40,67,.12);}
.hfb-back{display:inline-block;margin-bottom:12px;color:var(--hfb-secondary);font-size:9px;font-weight:750;text-decoration:none;}
.hfb-muted{font-size:9px!important;line-height:1.5!important;color:var(--hfb-muted)!important;}

/* Admin users */
.hfb-user-list{border-top:1px solid var(--hfb-line-strong);}
.hfb-user-row{border-bottom:1px solid var(--hfb-line);}
.hfb-user-row summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;cursor:pointer;list-style:none;}
.hfb-user-row summary::-webkit-details-marker{display:none;}
.hfb-user-row summary strong{display:block;font-size:10.5px;color:var(--hfb-primary);}
.hfb-user-row summary small{display:block;margin-top:3px;font-size:8.5px;color:var(--hfb-muted);}
.hfb-user-row summary b{font-size:8px;text-transform:uppercase;letter-spacing:.6px;color:var(--hfb-secondary);}
.hfb-user-edit{padding:2px 0 16px;}
.hfb-inline-actions{display:flex;gap:8px;flex-wrap:wrap;}

/* Alerts */
.hfb-alert{margin-bottom:16px;padding:11px 13px;border:1px solid;border-radius:10px;font-size:10px;line-height:1.45;}
.hfb-alert-success{background:#f2faf5;border-color:#cbe7d5;color:#2f6847;}
.hfb-alert-error{background:#fff5f4;border-color:#efd4d1;color:#8b4040;}

/* Preview */
.hfb-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid var(--hfb-line);border-radius:12px;background:#fff;}
.hfb-preview-toolbar>div strong{display:block;font-size:10px;color:var(--hfb-primary);}
.hfb-preview-toolbar>div span{display:block;margin-top:3px;font-size:8.5px;color:var(--hfb-muted);}
.hfb-preview-toolbar .hfb-test-send-form{width:min(430px,55%);}
.hfb-preview-toolbar .hfb-test-send-form label>span{color:var(--hfb-muted);}
.hfb-preview-toolbar .hfb-test-send-form input{background:#fff!important;color:var(--hfb-text)!important;border-color:#cfd6e1!important;}
.hfb-preview-toolbar .hfb-test-send-form input:focus{border-color:var(--hfb-secondary)!important;box-shadow:0 0 0 3px rgba(15,22,121,.07)!important;}
.hfb-preview-shell{overflow:auto;min-height:500px;padding:26px;border:1px solid #d9dfe8;border-radius:14px;background:#e8ecf2;box-shadow:inset 0 1px 5px rgba(29,42,70,.04);}

/* Full screen login */
.hfb-login-shell{
  min-height:100vh;width:100%;display:grid;grid-template-columns:minmax(420px,44%) minmax(0,56%);background:#fff;
}
.hfb-login-brand{
  min-height:100vh;position:relative;overflow:hidden;display:flex;flex-direction:column;padding:42px 52px 46px;
  background:
    radial-gradient(circle at 83% 18%,rgba(255,255,255,.08) 0 1px,transparent 1.5px) 0 0/22px 22px,
    linear-gradient(150deg,var(--hfb-primary) 0%,#17204a 52%,#101738 100%);
  color:#fff;
}
.hfb-login-brand:after{content:"";position:absolute;right:-170px;bottom:-190px;width:520px;height:520px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 86px rgba(255,255,255,.025),0 0 0 172px rgba(255,255,255,.018);pointer-events:none;}
.hfb-login-brand-top{position:relative;z-index:2;display:flex;align-items:center;gap:13px;}
.hfb-login-brand-top img{width:46px;height:46px;object-fit:contain;}
.hfb-login-brand-top .hfb-brand-mark{width:46px;height:46px;}
.hfb-login-brand-top span{font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:1.7px;font-weight:800;color:rgba(255,255,255,.56);}
.hfb-login-brand-copy{position:relative;z-index:2;margin:auto 0;max-width:500px;padding:58px 0;}
.hfb-login-eyebrow{font-size:9px;letter-spacing:2.3px;text-transform:uppercase;color:var(--hfb-highlight);font-weight:800;}
.hfb-login-brand h1{margin:13px 0 16px;max-width:470px;color:#fff;font-size:50px;line-height:.98;letter-spacing:-2px;font-weight:760;}
.hfb-login-brand-copy p{margin:0;max-width:390px;color:rgba(255,255,255,.6);font-size:12px;line-height:1.65;}
.hfb-login-brand-foot{position:relative;z-index:2;font-size:9px;line-height:1.4;color:rgba(255,255,255,.42);}
.hfb-login-card{min-height:100vh;display:grid;place-items:center;padding:54px;background:#fff;}
.hfb-login-card-inner{width:min(410px,100%);}
.hfb-login-kicker{margin-bottom:9px;font-size:9px;text-transform:uppercase;letter-spacing:1.7px;font-weight:800;color:var(--hfb-secondary);}
.hfb-login-card h2{margin:0;color:var(--hfb-primary);font-size:34px;line-height:1.05;letter-spacing:-1px;font-weight:760;}
.hfb-login-intro{margin:9px 0 27px;color:var(--hfb-muted);font-size:11px;line-height:1.6;}
.hfb-login-form label{display:block;margin:0 0 16px;}
.hfb-login-form label>span{display:block;margin-bottom:7px;color:var(--hfb-primary);font-size:9px;line-height:1.2;text-transform:uppercase;letter-spacing:.75px;font-weight:800;}
.hfb-login-form input[type=text],.hfb-login-form input[type=password]{width:100%;height:50px;border:1px solid #d6dce6;border-radius:10px;background:#fff;padding:0 14px;color:var(--hfb-text);font-size:12px;outline:none;transition:.15s ease;}
.hfb-login-form input::placeholder{color:#a7afbc;}
.hfb-login-form input:focus{border-color:var(--hfb-secondary);box-shadow:0 0 0 4px rgba(15,22,121,.055);}
.hfb-password-wrap{position:relative;}
.hfb-password-wrap input{padding-right:62px!important;}
.hfb-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#f4f6f9;border-radius:7px;padding:7px 9px;color:var(--hfb-primary);font-size:8.5px;font-weight:800;cursor:pointer;}
.hfb-login-options{display:flex;align-items:center;justify-content:space-between;margin:4px 0 21px;}
.hfb-login-options .hfb-check span{margin:0!important;color:var(--hfb-muted)!important;font-size:9px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important;}
.hfb-login-submit{width:100%;height:50px;justify-content:space-between;padding:0 18px;font-size:11px;border-radius:10px;}
.hfb-login-submit b{font-size:16px;font-weight:400;}
.hfb-login-help{margin-top:18px;padding-top:17px;border-top:1px solid var(--hfb-line);font-size:8.5px;line-height:1.5;color:#9098a8;}
.hfb-login-card .hfb-alert{margin-bottom:18px;}

/* Responsive */
@media(max-width:1080px){
  :root{--hfb-sidebar:238px;}
  .hfb-main-inner{padding:30px 28px 56px;}
  .hfb-publish-box{grid-template-columns:1fr;}
}
@media(max-width:900px){
  .hfb-app{grid-template-columns:1fr;}
  .hfb-sidebar{position:fixed;left:-258px;top:0;bottom:0;width:250px;height:100vh;transition:left .2s ease;box-shadow:10px 0 40px rgba(20,31,57,.18);}
  .hfb-app.menu-open .hfb-sidebar{left:0;}
  .hfb-app.menu-open:after{content:"";position:fixed;inset:0;background:rgba(11,18,39,.35);z-index:25;}
  .hfb-mobile-head{display:flex;align-items:center;justify-content:space-between;height:58px;padding:0 18px;background:var(--hfb-primary);color:#fff;}
  .hfb-mobile-head strong{font-size:11px;}
  .hfb-mobile-head button{border:1px solid rgba(255,255,255,.22);border-radius:8px;background:transparent;color:#fff;padding:7px 10px;font-size:9px;}
  .hfb-topbar{display:none;}
  .hfb-main-inner{padding:24px 20px 50px;}
  .hfb-grid-2,.hfb-admin-grid{grid-template-columns:1fr;}
  .hfb-login-shell{grid-template-columns:1fr;}
  .hfb-login-brand{min-height:320px;padding:30px 34px;}
  .hfb-login-brand-copy{margin:auto 0;padding:38px 0 24px;}
  .hfb-login-brand h1{font-size:40px;}
  .hfb-login-card{min-height:auto;padding:50px 30px;}
}
@media(max-width:650px){
  .hfb-page-head{display:block;}
  .hfb-page-head h1{font-size:26px;}
  .hfb-status{margin-top:14px;}
  .hfb-stat-grid{grid-template-columns:1fr;gap:8px;}
  .hfb-calendar-cols{grid-template-columns:1fr;}
  .hfb-publish-strip{display:block;}
  .hfb-publish-strip .hfb-btn{margin-top:15px;width:100%;}
  .hfb-publish-box{padding:21px;}
  .hfb-test-send-form{display:grid;grid-template-columns:1fr;align-items:stretch;}
  .hfb-test-send-form .hfb-btn{width:100%;}
  .hfb-form-grid,.hfb-colours,.hfb-check-grid{grid-template-columns:1fr;}
  .hfb-week-switch{grid-template-columns:1fr;gap:8px;}
  .hfb-week-switch a:last-child{text-align:left;}
  .hfb-priority-edit{grid-template-columns:32px minmax(0,1fr);}
  .hfb-sticky-actions{position:static;width:100%;justify-content:stretch;}
  .hfb-sticky-actions>*{flex:1;}
  .hfb-preview-toolbar{display:block;}
  .hfb-preview-toolbar .hfb-test-send-form{width:100%;margin-top:12px;}
  .hfb-preview-shell{padding:10px;border-radius:10px;}
  .hfb-login-brand{min-height:270px;padding:25px 24px;}
  .hfb-login-brand h1{font-size:34px;letter-spacing:-1.3px;}
  .hfb-login-brand-copy p{font-size:10px;}
  .hfb-login-card{padding:38px 24px;}
  .hfb-login-card h2{font-size:29px;}
}


/* Bulletin section manager */
.hfb-section-manager{margin-top:18px;}
.hfb-section-manager .hfb-panel-head{align-items:flex-start;}
.hfb-sort-list{border-top:1px solid var(--hfb-line-strong);margin:18px 0 16px;}
.hfb-sort-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;padding:9px 4px;border-bottom:1px solid var(--hfb-line);background:#fff;transition:background .12s ease,box-shadow .12s ease,transform .12s ease;}
.hfb-sort-row:hover{background:#fafbfc;}
.hfb-sort-row.is-dragging{opacity:.55;background:#f3f6fb;box-shadow:0 10px 25px rgba(25,37,65,.08);}
.hfb-sort-row.is-drag-over{border-top:2px solid var(--hfb-secondary);}
.hfb-drag{display:flex;align-items:center;justify-content:center;width:28px;height:32px;border:1px solid var(--hfb-line);border-radius:8px;color:#8b94a5;font-size:15px;line-height:1;cursor:grab;user-select:none;}
.hfb-drag:active{cursor:grabbing;}
.hfb-sort-row strong{font-size:10.5px;color:var(--hfb-primary);font-weight:750;}
.hfb-system-tag{justify-self:end;padding:5px 8px;border-radius:999px;background:#f2f4f8;color:#7a8395;font-size:7.5px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;}
.hfb-sort-name{margin:0!important;height:38px!important;padding:0 10px!important;font-size:10.5px!important;font-weight:700!important;}
.hfb-remove-section{border:0;background:transparent;color:#9a4a4a;font-size:8.5px;font-weight:800;cursor:pointer;padding:7px 5px;}
.hfb-remove-section:hover{color:#742f2f;text-decoration:underline;}
@media(max-width:650px){
  .hfb-sort-row{grid-template-columns:30px minmax(0,1fr) auto;gap:8px;}
  .hfb-section-manager .hfb-panel-head{display:block;}
  .hfb-section-manager .hfb-panel-head .hfb-btn{margin-top:12px;width:100%;}
}


/* ==========================================================
   v1.3 premium application layer
   ========================================================== */
:root{
  --hfb-sidebar:292px;
  --hfb-bg:#f4f6fb;
  --hfb-surface:#ffffff;
  --hfb-line:#e2e6ef;
  --hfb-line-strong:#d7dce8;
  --hfb-radius:22px;
  --hfb-shadow:0 18px 45px rgba(22,31,64,.08);
}
.hfb-app{background:#f4f6fb;}
.hfb-sidebar{
  background:linear-gradient(180deg,#11112f 0%,#111149 42%,#09096d 100%);
  border-right:1px solid rgba(255,255,255,.07);
  box-shadow:14px 0 40px rgba(16,18,62,.09);
}
.hfb-brand{
  min-height:122px;
  padding:28px 28px 25px;
  border-bottom:0;
}
.hfb-brand img,.hfb-brand-mark{width:48px;height:48px;}
.hfb-brand strong{font-size:14px;font-weight:800;letter-spacing:-.3px;}
.hfb-brand small{font-size:9.5px;color:rgba(255,255,255,.48);}
.hfb-sidebar nav{padding:12px 16px 26px;gap:5px;}
.hfb-nav-group-label{
  margin:22px 13px 7px;
  color:rgba(255,255,255,.37);
  font-size:8px;
  line-height:1;
  font-weight:850;
  letter-spacing:1.35px;
  text-transform:uppercase;
}
.hfb-sidebar nav a{
  min-height:48px;
  border-radius:14px;
  padding:0 14px;
  color:rgba(255,255,255,.69);
  font-size:11.5px;
  font-weight:700;
}
.hfb-sidebar nav a.active{
  background:rgba(255,255,255,.105);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 8px 24px rgba(0,0,0,.08);
}
.hfb-userbox{
  margin:0 16px 18px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.09);
}
.hfb-main{
  background:
    radial-gradient(circle at 10% 4%, rgba(80,69,223,.11), transparent 28%),
    radial-gradient(circle at 92% 5%, rgba(34,43,85,.07), transparent 24%),
    linear-gradient(rgba(47,58,99,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(47,58,99,.035) 1px, transparent 1px),
    #f5f7fb;
  background-size:auto,auto,56px 56px,56px 56px,auto;
}
.hfb-topbar{
  height:74px;
  padding:0 42px;
  background:rgba(248,249,253,.82);
  border-bottom:1px solid rgba(216,221,232,.8);
  box-shadow:0 1px 0 rgba(255,255,255,.75);
}
.hfb-topbar-context{font-size:10px;}
.hfb-main-inner{
  width:min(1480px,100%);
  padding:42px 46px 84px;
}
.hfb-page-head{margin-bottom:26px;}
.hfb-page-head-premium{align-items:center;}
.hfb-page-head h1{
  font-size:38px;
  letter-spacing:-1.35px;
  font-weight:850;
  color:#12162d;
}
.hfb-page-head p{font-size:11.5px;max-width:750px;}
.hfb-kicker{font-size:8.5px;letter-spacing:1.55px;color:var(--hfb-secondary);}
.hfb-page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end;}
.hfb-status{
  min-height:42px;
  padding:0 15px;
  border-radius:999px;
  box-shadow:0 6px 20px rgba(24,32,62,.04);
}
.hfb-btn{
  min-height:44px;
  border-radius:999px;
  padding:0 18px;
  font-size:9.5px;
  box-shadow:0 8px 20px rgba(25,34,70,.06);
}
.hfb-btn-primary{
  background:linear-gradient(135deg,var(--hfb-secondary),#2626c7);
  border-color:transparent;
  box-shadow:0 10px 25px rgba(15,22,121,.18);
}
.hfb-btn-soft{background:#f2f4fa;border-color:#e3e7f0;box-shadow:none;}

/* Large week focus */
.hfb-week-hero{
  position:relative;
  display:grid;
  grid-template-columns:170px minmax(0,1fr) 170px;
  align-items:center;
  gap:18px;
  min-height:170px;
  margin:0 0 20px;
  padding:24px 30px;
  overflow:hidden;
  border:1px solid rgba(216,221,232,.95);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(103,92,234,.11), transparent 32%),
    radial-gradient(circle at 84% 100%, rgba(207,239,255,.7), transparent 30%),
    rgba(255,255,255,.92);
  box-shadow:0 18px 48px rgba(28,38,76,.07);
}
.hfb-week-hero:after{
  content:"";
  position:absolute;
  right:-70px;top:-90px;
  width:260px;height:260px;
  border-radius:50%;
  border:1px solid rgba(15,22,121,.06);
  box-shadow:0 0 0 42px rgba(15,22,121,.018),0 0 0 84px rgba(15,22,121,.012);
  pointer-events:none;
}
.hfb-week-focus{text-align:center;position:relative;z-index:1;}
.hfb-week-focus>span{
  display:block;
  margin-bottom:9px;
  font-size:9px;
  font-weight:850;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--hfb-secondary);
}
.hfb-week-focus strong{
  display:block;
  font-size:42px;
  line-height:1.02;
  letter-spacing:-1.8px;
  font-weight:860;
  color:#171c3a;
}
.hfb-week-focus small{
  display:block;
  margin-top:10px;
  color:#7a8397;
  font-size:9.5px;
  font-weight:650;
}
.hfb-week-arrow{
  position:relative;z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--hfb-primary);
  text-decoration:none;
  font-weight:800;
}
.hfb-week-arrow span{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid #e2e6ef;
  box-shadow:0 7px 18px rgba(25,34,70,.06);
  font-size:16px;
}
.hfb-week-arrow small{
  font-size:8.5px;
  text-transform:uppercase;
  letter-spacing:.9px;
  color:#727c90;
}
.hfb-week-arrow-next{justify-content:flex-end;text-align:right;}

/* Premium metrics */
.hfb-stat-grid-premium{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;}
.hfb-stat-grid-premium>div{
  min-height:126px;
  padding:22px 22px 19px;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(222,226,236,.95);
  box-shadow:0 14px 35px rgba(26,36,74,.055);
}
.hfb-stat-grid-premium>div>span{
  margin:0 0 13px;
  font-size:8px;
  letter-spacing:1.3px;
  color:#8a93a6;
}
.hfb-stat-grid-premium strong{
  font-size:34px;
  line-height:1;
  color:#12162d;
  letter-spacing:-1.2px;
}
.hfb-stat-grid-premium small{
  display:block;
  margin-top:8px;
  font-size:8.5px;
  color:#8a93a6;
}

/* One shared editing sheet */
.hfb-shared-sheet{
  overflow:hidden;
  margin-bottom:22px;
  border:1px solid rgba(218,223,234,.98);
  border-radius:26px;
  background:rgba(255,255,255,.96);
  box-shadow:0 22px 55px rgba(27,37,74,.075);
}
.hfb-sheet-titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px 28px;
  border-bottom:1px solid #e6e9f0;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.hfb-sheet-titlebar h2{margin:2px 0 0;font-size:20px;color:#171c3a;letter-spacing:-.5px;}
.hfb-sheet-sync{
  display:flex;align-items:center;gap:8px;
  font-size:8.5px;font-weight:750;color:#687286;
}
.hfb-sheet-sync>span{
  width:8px;height:8px;border-radius:50%;
  background:#5caa79;box-shadow:0 0 0 5px rgba(92,170,121,.1);
}
.hfb-sheet-section{
  padding:28px;
  border-bottom:1px solid #e6e9f0;
}
.hfb-sheet-section:last-of-type{border-bottom:0;}
.hfb-sheet-section-head{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  margin-bottom:16px;
}
.hfb-sheet-number{
  width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:14px;
  background:#f1f3fb;
  color:var(--hfb-secondary);
  font-size:13px;
  font-weight:850;
  letter-spacing:.4px;
}
.hfb-sheet-section-head h3{
  margin:1px 0 5px;
  color:#171c3a;
  font-size:19px;
  line-height:1.2;
  letter-spacing:-.45px;
  font-weight:820;
}
.hfb-sheet-section-head p{
  margin:0;
  color:#8991a2;
  font-size:8.8px;
  line-height:1.45;
}
.hfb-sheet-section textarea{
  width:100%;
  min-height:132px;
  display:block;
  resize:vertical;
  padding:16px 17px;
  border:1px solid #d9dee8;
  border-radius:15px;
  background:#fbfcfe;
  color:#252b41;
  font:inherit;
  font-size:11.5px;
  line-height:1.65;
  outline:none;
  transition:.16s ease;
}
.hfb-sheet-section textarea:focus{
  background:#fff;
  border-color:rgba(15,22,121,.55);
  box-shadow:0 0 0 4px rgba(15,22,121,.055);
}
.hfb-sheet-calendar{background:linear-gradient(180deg,#fcfdff,#fff);}
.hfb-sheet-calendar .hfb-calendar-cols{margin-top:4px;}
.hfb-sheet-calendar .hfb-cal-col{
  padding:16px;
  border:1px solid #e1e5ee;
  border-top:4px solid var(--hfb-primary);
  border-radius:16px;
  background:#fff;
}
.hfb-sheet-calendar .hfb-cal-title strong{font-size:9px;}
.hfb-sheet-calendar .hfb-cal-title span{font-size:9px;}
.hfb-sheet-calendar .hfb-cal-event{grid-template-columns:42px minmax(0,1fr);padding:12px 0;}
.hfb-sheet-calendar .hfb-cal-date span{font-size:21px;}
.hfb-sheet-calendar .hfb-cal-event strong{font-size:10.5px;}
.hfb-sheet-calendar .hfb-cal-event small{font-size:8.5px;}
.hfb-sheet-footer{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:20px 28px;
  background:#f7f8fc;
}
.hfb-sheet-footer strong{display:block;color:#252b44;font-size:10px;}
.hfb-sheet-footer span{display:block;margin-top:3px;color:#8b93a4;font-size:8.5px;}
.hfb-empty-sheet{padding:30px;color:#7e8799;text-align:center;font-size:10px;}
.hfb-publish-box-premium{border-radius:24px;padding:30px;background:linear-gradient(135deg,#16183b,#10106f);}

/* Premium role guide */
.hfb-role-guide{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:20px;
}
.hfb-role-guide>div{
  padding:18px 20px;
  border:1px solid #e0e4ed;
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 30px rgba(26,35,70,.045);
}
.hfb-role-guide strong{display:block;color:#171c3a;font-size:11px;}
.hfb-role-guide span{display:block;margin-top:5px;color:#818a9d;font-size:8.8px;line-height:1.5;}

/* Admin panels made closer to the premium compliance-app visual language */
.hfb-panel{
  border-radius:22px;
  padding:26px;
  border-color:rgba(220,224,234,.95);
  box-shadow:0 16px 38px rgba(27,37,74,.055);
}
.hfb-panel h2{font-size:20px;color:#171c3a;font-weight:820;}
.hfb-editor-form input[type=text],.hfb-editor-form input[type=email],.hfb-editor-form input[type=url],.hfb-editor-form input[type=password],.hfb-editor-form textarea,.hfb-editor-form select,.hfb-user-edit input,.hfb-user-edit select,.hfb-user-edit textarea{
  border-radius:13px;
  background:#fbfcfe;
  min-height:46px;
}
.hfb-editor-form textarea,.hfb-user-edit textarea{min-height:120px;}
.hfb-user-row summary{padding:17px 5px;}
.hfb-user-row summary strong{font-size:11px;}

/* Section manager: delete everything, restore standard rows */
.hfb-sort-list{margin-top:22px;}
.hfb-sort-row{
  grid-template-columns:40px minmax(0,1fr) auto auto;
  min-height:66px;
  gap:13px;
  padding:10px 5px;
}
.hfb-sort-row strong{font-size:11px;color:#171c3a;}
.hfb-drag{width:34px;height:38px;border-radius:10px;background:#f7f8fb;}
.hfb-system-tag{font-size:7.5px;}
.hfb-remove-section{
  min-height:34px;
  padding:0 10px;
  border:1px solid #efd8d8;
  border-radius:999px;
  background:#fff7f7;
  color:#a04b4b;
  text-decoration:none!important;
}
.hfb-remove-section:hover{background:#fff0f0;color:#7e3030;}
.hfb-restore-sections{
  margin:20px 0 4px;
  padding:18px;
  border:1px dashed #d8deea;
  border-radius:16px;
  background:#fafbfe;
}
.hfb-restore-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.hfb-restore-core{
  border:1px solid #dce1eb;
  border-radius:999px;
  background:#fff;
  padding:9px 12px;
  color:var(--hfb-primary);
  font-size:8.5px;
  font-weight:800;
  cursor:pointer;
}
.hfb-restore-core:hover{border-color:#bec7d9;box-shadow:0 6px 16px rgba(26,35,70,.06);}

/* Login polish in same premium family */
.hfb-login-brand{
  background:
    radial-gradient(circle at 20% 18%,rgba(102,91,229,.24),transparent 24%),
    linear-gradient(145deg,#121331 0%,#141650 55%,#09096e 100%);
}
.hfb-login-card{background:
  radial-gradient(circle at 86% 15%,rgba(207,239,255,.55),transparent 28%),
  linear-gradient(rgba(47,58,99,.03) 1px,transparent 1px),
  linear-gradient(90deg,rgba(47,58,99,.03) 1px,transparent 1px),
  #fbfcff;
  background-size:auto,56px 56px,56px 56px,auto;
}
.hfb-login-card-inner{
  border:1px solid #e3e6ef;
  border-radius:24px;
  background:rgba(255,255,255,.93);
  padding:34px;
  box-shadow:0 24px 60px rgba(24,33,67,.09);
}

@media(max-width:1080px){
  :root{--hfb-sidebar:250px;}
  .hfb-main-inner{padding:34px 30px 70px;}
  .hfb-week-hero{grid-template-columns:140px minmax(0,1fr) 140px;}
  .hfb-week-focus strong{font-size:36px;}
}
@media(max-width:900px){
  .hfb-main-inner{padding:26px 20px 60px;}
  .hfb-page-actions{justify-content:flex-start;margin-top:15px;}
  .hfb-page-head-premium{display:block;}
  .hfb-week-hero{grid-template-columns:56px minmax(0,1fr) 56px;padding:22px 14px;}
  .hfb-week-arrow small{display:none;}
  .hfb-week-arrow span{width:42px;height:42px;}
  .hfb-week-focus strong{font-size:31px;}
  .hfb-stat-grid-premium{grid-template-columns:1fr 1fr;}
  .hfb-role-guide{grid-template-columns:1fr;}
}
@media(max-width:650px){
  .hfb-week-hero{min-height:146px;}
  .hfb-week-focus strong{font-size:25px;letter-spacing:-.9px;}
  .hfb-week-focus small{font-size:8px;}
  .hfb-stat-grid-premium{grid-template-columns:1fr 1fr;}
  .hfb-stat-grid-premium>div{min-height:104px;padding:17px;}
  .hfb-stat-grid-premium strong{font-size:28px;}
  .hfb-sheet-titlebar,.hfb-sheet-footer{display:block;padding:20px;}
  .hfb-sheet-sync{margin-top:12px;}
  .hfb-sheet-footer .hfb-btn{width:100%;margin-top:13px;}
  .hfb-sheet-section{padding:21px 18px;}
  .hfb-sheet-section-head{grid-template-columns:46px minmax(0,1fr);gap:12px;}
  .hfb-sheet-section-head>.hfb-btn{grid-column:1/-1;width:100%;}
  .hfb-sheet-number{width:42px;height:42px;}
  .hfb-sort-row{grid-template-columns:34px minmax(0,1fr) auto;}
  .hfb-sort-row .hfb-system-tag{display:none;}
}


.hfb-sheet-sync.has-unsaved{color:#8a6518;}
.hfb-sheet-sync.has-unsaved>span{background:#d49a2c;box-shadow:0 0 0 5px rgba(212,154,44,.11);}

.hfb-sidebar-status{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 16px 4px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.07);
}
.hfb-sidebar-status-dot{
  width:8px;height:8px;flex:0 0 auto;border-radius:50%;
  background:#f0b95e;box-shadow:0 0 0 5px rgba(240,185,94,.1);
}
.hfb-sidebar-status.published .hfb-sidebar-status-dot{background:#61c189;box-shadow:0 0 0 5px rgba(97,193,137,.1);}
.hfb-sidebar-status strong{display:block;color:#fff;font-size:9.5px;line-height:1.2;}
.hfb-sidebar-status small{display:block;margin-top:3px;color:rgba(255,255,255,.48);font-size:7.8px;line-height:1.2;}

/* Rich content editor: bullets, links and pasted tables */
.hfb-editor-label{
  display:block;
  margin:0 0 8px;
  color:#5e6678;
  font-size:9px;
  font-weight:800;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.hfb-rich-editor{
  overflow:hidden;
  border:1px solid #d9dee8;
  border-radius:16px;
  background:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.hfb-rich-editor:focus-within{
  border-color:rgba(15,22,121,.55);
  box-shadow:0 0 0 4px rgba(15,22,121,.055);
}
.hfb-rich-toolbar{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:48px;
  padding:7px 10px;
  overflow-x:auto;
  border-bottom:1px solid #e3e7ee;
  background:#f7f8fb;
  scrollbar-width:thin;
}
.hfb-rich-toolbar button{
  min-width:34px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  flex:0 0 auto;
  padding:0 9px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#343b52;
  font:inherit;
  font-size:9.5px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.hfb-rich-toolbar button:hover,
.hfb-rich-toolbar button:focus-visible{
  border-color:#d8deea;
  background:#fff;
  color:var(--hfb-secondary);
  outline:none;
}
.hfb-rich-divider{
  width:1px;
  height:22px;
  flex:0 0 auto;
  margin:0 2px;
  background:#dfe3ea;
}
.hfb-list-lines{font-size:13px;line-height:.5;transform:rotate(90deg);display:inline-block;margin-left:1px;}
.hfb-rich-editor-content{
  min-height:150px;
  max-height:640px;
  overflow:auto;
  padding:17px 18px;
  background:#fff;
  color:#252b41;
  font-size:11.5px;
  line-height:1.65;
  outline:none;
  white-space:normal;
  overflow-wrap:anywhere;
}
.hfb-rich-editor-content:empty:before{
  content:attr(data-placeholder);
  color:#a1a8b6;
  pointer-events:none;
}
.hfb-rich-editor-content p{margin:0 0 10px;}
.hfb-rich-editor-content p:last-child{margin-bottom:0;}
.hfb-rich-editor-content ul,
.hfb-rich-editor-content ol{
  margin:8px 0 12px;
  padding-left:24px;
}
.hfb-rich-editor-content li{margin:3px 0;padding-left:2px;}
.hfb-rich-editor-content a{color:var(--hfb-secondary);text-decoration:underline;text-underline-offset:2px;}
.hfb-rich-editor-content h3,
.hfb-rich-editor-content h4{margin:15px 0 7px;color:#171c3a;line-height:1.3;}
.hfb-rich-editor-content h3{font-size:14px;}
.hfb-rich-editor-content h4{font-size:12px;}
.hfb-rich-editor-content table{
  width:100%;
  margin:12px 0 16px;
  border-collapse:collapse;
  border-spacing:0;
  table-layout:auto;
  background:#fff;
}
.hfb-rich-editor-content th{
  padding:8px 10px;
  border:1px solid #182350;
  background:#182350;
  color:#fff;
  text-align:left;
  vertical-align:top;
  font-size:10px;
  line-height:1.35;
  font-weight:800;
}
.hfb-rich-editor-content td{
  padding:7px 9px;
  border:1px solid #c8ced8;
  color:#454d60;
  text-align:left;
  vertical-align:top;
  font-size:10px;
  line-height:1.4;
}
.hfb-rich-editor-content tr:nth-child(even) td{background:#f7f8fa;}
.hfb-rich-editor-input{display:none!important;}
.hfb-rich-editor-help{
  padding:8px 12px 9px;
  border-top:1px solid #edf0f4;
  background:#fbfcfe;
  color:#9299a8;
  font-size:7.8px;
  line-height:1.45;
}
.hfb-sheet-section>.hfb-rich-editor{margin-top:3px;}
.hfb-editor-form>.hfb-rich-editor{margin-top:8px;}

@media(max-width:650px){
  .hfb-rich-toolbar{padding:6px 8px;}
  .hfb-rich-toolbar button{height:31px;padding:0 8px;}
  .hfb-rich-editor-content{min-height:135px;padding:14px;font-size:11px;}
  .hfb-rich-editor-content table{font-size:9px;}
  .hfb-rich-editor-content th,.hfb-rich-editor-content td{padding:6px 6px;font-size:9px;}
  .hfb-rich-editor-help{font-size:7.4px;}
}

/* v1.3.3 account invitations and first-login security */
.hfb-account-invite-note{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:13px 14px;
  border:1px solid #dfe5ee;
  border-radius:14px;
  background:#f8faff;
}
.hfb-account-invite-note:before{
  content:'↗';
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--hfb-secondary);
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.hfb-account-invite-note strong,
.hfb-account-invite-note span{display:block;}
.hfb-account-invite-note strong{font-size:10.5px;color:#232a48;margin-bottom:3px;}
.hfb-account-invite-note span{font-size:9px;line-height:1.5;color:#747d90;}
.hfb-user-security-state{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#f8fafc;
}
.hfb-user-security-state>span{
  width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#63b98b;box-shadow:0 0 0 4px rgba(99,185,139,.12);
}
.hfb-user-security-state.waiting>span{background:#e0a444;box-shadow:0 0 0 4px rgba(224,164,68,.14);}
.hfb-user-security-state strong,.hfb-user-security-state small{display:block;}
.hfb-user-security-state strong{font-size:9.5px;color:#283049;margin-bottom:2px;}
.hfb-user-security-state small{font-size:8px;color:#81899a;line-height:1.35;}
.hfb-settings-subsection{margin-top:12px;padding-top:20px;border-top:1px solid #e4e8ef;}
.hfb-settings-subsection h3{margin:4px 0 4px;font-size:16px;color:#1e2541;}
.hfb-settings-subsection p{margin:0 0 5px;}
.hfb-first-login .hfb-login-brand-copy h1{max-width:620px;}
.hfb-password-guidance{
  display:flex;
  gap:9px;
  align-items:center;
  color:#7a8396;
  font-size:9px;
  line-height:1.4;
}
.hfb-password-guidance span{
  width:8px;height:8px;border-radius:50%;background:var(--hfb-highlight);box-shadow:0 0 0 4px rgba(244,211,94,.16);
}
.hfb-first-login .hfb-login-help a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
@media(max-width:650px){
  .hfb-account-invite-note{padding:12px;}
  .hfb-user-security-state{margin-top:3px;}
}

/* 1.3.7 recovery: live-send button contrast */
.hfb-publish-btn,
.hfb-publish-btn:link,
.hfb-publish-btn:visited,
.hfb-publish-btn:hover,
.hfb-publish-btn:focus,
.hfb-publish-btn span { color:#fff !important; }

/* v1.3.8 bulletin title editing, duplication and per-bulletin section controls */
.hfb-sheet-section-main{min-width:0;}
.hfb-section-title-label{
  display:block;
  margin:0 0 5px;
  font-size:7.5px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:#9299aa;
}
.hfb-section-title-input{
  display:block;
  width:100%;
  max-width:650px;
  margin:0 0 7px;
  padding:2px 0 5px;
  border:0;
  border-bottom:1px solid transparent;
  border-radius:0;
  outline:none;
  background:transparent;
  color:#171c3a;
  font:inherit;
  font-size:19px;
  line-height:1.2;
  letter-spacing:-.45px;
  font-weight:820;
  transition:border-color .16s ease,background .16s ease;
}
.hfb-section-title-input:hover{border-bottom-color:#dfe3ec;}
.hfb-section-title-input:focus{
  border-bottom-color:var(--hfb-secondary);
  background:linear-gradient(180deg,transparent 68%,rgba(15,22,121,.045) 68%);
}
.hfb-section-head-actions{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
  max-width:270px;
}
.hfb-section-head-actions .hfb-btn{
  min-height:35px;
  padding:8px 12px;
  white-space:nowrap;
}
.hfb-btn-quiet{
  border:1px solid #e0e4ec!important;
  background:#fff!important;
  color:#626b7f!important;
  box-shadow:none!important;
}
.hfb-btn-danger-soft{
  border-color:#f0d9da!important;
  background:#fffafb!important;
  color:#9b5058!important;
}
.hfb-btn-danger-soft:hover{background:#fff2f3!important;color:#883d46!important;}
.hfb-removed-sections{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 28px;
  border-top:1px solid #e6e9f0;
  background:#f8f9fc;
}
.hfb-removed-sections strong{
  display:block;
  margin-top:3px;
  color:#30374d;
  font-size:10px;
  line-height:1.45;
}
.hfb-removed-section-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
}
.hfb-removed-section-actions .hfb-btn{min-height:34px;padding:8px 11px;}

@media(max-width:800px){
  .hfb-sheet-section-head{grid-template-columns:46px minmax(0,1fr);}
  .hfb-section-head-actions{grid-column:2;justify-content:flex-start;max-width:none;margin-top:2px;}
  .hfb-section-title-input{font-size:17px;}
  .hfb-removed-sections{display:block;padding:18px;}
  .hfb-removed-section-actions{justify-content:flex-start;margin-top:12px;}
}
@media(max-width:520px){
  .hfb-section-head-actions{grid-column:1/-1;}
  .hfb-section-head-actions .hfb-btn{flex:1 1 auto;}
  .hfb-section-title-input{font-size:16px;}
}
