:root{--bf-yellow:#ffd000;--bf-bg:#f5f5f1;--bf-line:#e7e7df;--bf-dark:#121212;--bf-muted:#74746e;--bf-card:#fff;--bf-radius:18px;--bf-shadow:0 12px 32px rgba(0,0,0,.07)}
.bfm-app{min-height:760px;display:grid;grid-template-columns:250px minmax(0,1fr);background:var(--bf-bg);border-radius:22px;overflow:hidden;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#171717}.bfm-app *{box-sizing:border-box}.bfm-sidebar{background:linear-gradient(180deg,#0e0e0e,#1a1a1a);color:#fff;padding:24px 17px;position:relative}.bfm-brand{display:flex;gap:12px;align-items:center;margin:0 6px 26px}.bfm-brand>span{width:42px;height:42px;border-radius:13px;background:var(--bf-yellow);display:grid;place-items:center;color:#111;font-weight:900;font-size:20px}.bfm-brand strong{display:block;font-size:20px}.bfm-brand small{display:block;color:#888;font-size:11px}.bfm-sidebar nav{display:grid;gap:3px}.bfm-sidebar nav a{color:#c9c9c9;text-decoration:none;padding:11px 12px;border-radius:11px;font-size:14px}.bfm-sidebar nav a:hover{background:#242424;color:#fff}.bfm-sidebar nav a.active{background:var(--bf-yellow);color:#111;font-weight:800}.bfm-sidebar nav a.bfm-tech{margin-top:20px;border:1px solid #373737;color:#fff}.bfm-side-bottom{position:absolute;bottom:20px;left:28px}.bfm-side-bottom a{color:#999;text-decoration:none;font-size:12px}.bfm-main{min-width:0}.bfm-top{height:72px;border-bottom:1px solid var(--bf-line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:rgba(245,245,241,.94)}.bfm-top strong{display:block}.bfm-top small{display:block;font-size:11px;color:var(--bf-muted)}.bfm-top-user{font-size:13px;font-weight:700}.bfm-content{padding:28px;max-width:1450px;margin:auto}.bfm-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.bfm-page-head h1{font-size:31px;line-height:1.1;margin:0 0 6px}.bfm-page-head p{margin:0;color:var(--bf-muted)}.bfm-card{background:var(--bf-card);border:1px solid var(--bf-line);border-radius:var(--bf-radius);box-shadow:var(--bf-shadow)}.bfm-pad{padding:20px}.bfm-pad h3{margin:0 0 14px}.bfm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.bfm-kpi{padding:19px}.bfm-kpi span{display:block;color:var(--bf-muted);font-size:12px}.bfm-kpi strong{display:block;font-size:30px;margin-top:8px}.bfm-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bfm-form{display:grid;gap:12px}.bfm-form label,.bfm-login label{display:grid;gap:6px;font-size:11px;font-weight:800}.bfm-form input,.bfm-form select,.bfm-form textarea,.bfm-login input{width:100%;border:1px solid var(--bf-line);background:#fff;border-radius:11px;padding:11px 12px;min-height:44px}.bfm-form textarea{min-height:100px;resize:vertical}.bfm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bfm-check{display:flex!important;align-items:center;gap:8px!important;font-size:12px!important}.bfm-check input{width:auto!important;min-height:0!important}.bfm-check.small{font-weight:600!important}.bfm-btn{border:0;border-radius:11px;padding:10px 14px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}.bfm-btn-accent{background:var(--bf-yellow);color:#111}.bfm-btn-dark{background:#111;color:#fff}.bfm-btn-light{background:#fff;border:1px solid var(--bf-line);color:#222}.bfm-btn-soft{background:#f3f3ee;color:#222}.bfm-inline{display:inline}.bfm-schedule-editor{border-top:1px solid var(--bf-line);padding-top:14px;margin-top:4px}.bfm-schedule-title strong{display:block;font-size:13px}.bfm-schedule-title small{display:block;color:var(--bf-muted);margin-top:3px}.bfm-schedule-row{display:grid;grid-template-columns:1fr 1fr 1fr 38px;gap:12px;align-items:end;background:#fafaf7;border:1px solid var(--bf-line);border-radius:14px;padding:12px;margin-top:10px}.bfm-schedule-row label{justify-content:end}.bfm-schedule-row select,.bfm-schedule-row input{height:44px}.bfm-duration{display:flex;align-items:center;gap:7px}.bfm-duration input{flex:1}.bfm-duration span{font-size:12px;color:var(--bf-muted)}.bfm-remove-slot{width:38px;height:44px;border:1px solid var(--bf-line);border-radius:10px;background:#fff;font-size:20px;color:#777}.bfm-add-slot{border:0;background:transparent;font-weight:800;margin-top:9px;padding:7px 2px}.bfm-add-slot span{display:inline-grid;place-items:center;width:22px;height:22px;background:var(--bf-yellow);border-radius:7px;margin-right:5px}.bfm-list{display:grid}.bfm-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--bf-line)}.bfm-list-row:last-child{border-bottom:0}.bfm-list-row strong,.bfm-list-row small{display:block}.bfm-list-row small{font-size:12px;color:var(--bf-muted);margin-top:3px}.bfm-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.bfm-tag{display:inline-flex;background:#f2f2ed;border-radius:999px;padding:6px 8px;font-size:10px;font-weight:700;margin:7px 5px 0 0}.bfm-tags{display:flex;gap:7px;flex-wrap:wrap}.bfm-status{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;margin-top:7px;background:#f1f1ed}.bfm-status.pending,.bfm-status.waitlist{background:#fff1b8;color:#755d00}.bfm-status.approved,.bfm-status.accepted{background:#e7f5ed;color:#246c4e}.bfm-status.rejected,.bfm-status.declined{background:#f8e8e8;color:#a33e3e}.bfm-info{background:#fff8d8;border:1px solid #f0df8b;border-radius:13px;padding:12px;font-size:12px;line-height:1.5}.bfm-subhead{margin-top:24px!important}.bfm-mini-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--bf-line);font-size:12px}.bfm-mini-row span{color:var(--bf-muted)}.bfm-user-box{border-bottom:1px solid var(--bf-line);padding:14px 0}.bfm-user-box>div strong,.bfm-user-box>div small{display:block}.bfm-user-box>div small{font-size:11px;color:var(--bf-muted);margin:3px 0 10px}.bfm-template{border:1px solid var(--bf-line);border-radius:13px;padding:12px}.bfm-template summary{font-weight:800;cursor:pointer}.bfm-template[open] summary{margin-bottom:12px}.bfm-notice{padding:12px 14px;border-radius:12px;margin-bottom:16px;font-size:13px}.bfm-notice.success{background:#e8f6ef;color:#225f47}.bfm-notice.error{background:#fae8e8;color:#9c3434}.bfm-login{max-width:520px;margin:40px auto;padding:26px;font-family:Inter,system-ui,sans-serif}.bfm-login h2{margin-top:0}.bfm-login form{display:grid;gap:12px}.bfm-parent-hero{background:#141414;color:#fff;border-radius:22px;padding:24px;margin-bottom:18px;position:relative;overflow:hidden}.bfm-parent-hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--bf-yellow);right:-80px;top:-115px}.bfm-parent-hero h2{margin:0 0 8px;position:relative;z-index:2}.bfm-parent-hero p{margin:0;color:#bbb;position:relative;z-index:2}.bfm-child-card{display:grid;grid-template-columns:50px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--bf-line)}.bfm-child-card>span{width:46px;height:46px;border-radius:14px;background:#fff4ba;display:grid;place-items:center;font-weight:900}.bfm-child-card strong,.bfm-child-card small{display:block}.bfm-child-card small{color:var(--bf-muted);font-size:11px}.bfm-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bfm-event{padding:20px}.bfm-event h3{margin:12px 0 8px}.bfm-event p{font-size:13px;line-height:1.55;color:#555}.bfm-meta-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--bf-line)}.bfm-meta-row span{color:var(--bf-muted)}.bfm-muted{color:var(--bf-muted)}
@media(max-width:1100px){.bfm-app{grid-template-columns:215px minmax(0,1fr)}.bfm-kpis{grid-template-columns:1fr 1fr}.bfm-two{grid-template-columns:1fr}}
@media(max-width:760px){.bfm-app{display:block;border-radius:0}.bfm-sidebar{position:relative;min-height:auto;padding-bottom:20px}.bfm-sidebar nav{grid-template-columns:1fr 1fr}.bfm-side-bottom{position:static;margin:18px 12px 0}.bfm-top{padding:0 14px}.bfm-content{padding:20px 14px}.bfm-page-head{flex-direction:column}.bfm-form-grid{grid-template-columns:1fr}.bfm-schedule-row{grid-template-columns:1fr 1fr}.bfm-schedule-row .bfm-remove-slot{grid-column:2;justify-self:end}.bfm-list-row{grid-template-columns:1fr}.bfm-row-actions{justify-content:flex-start}.bfm-event-grid{grid-template-columns:1fr}}
@media(max-width:480px){.bfm-kpis{grid-template-columns:1fr}.bfm-sidebar nav{grid-template-columns:1fr}.bfm-schedule-row{grid-template-columns:1fr}.bfm-schedule-row .bfm-remove-slot{grid-column:1;justify-self:end}.bfm-content{padding:16px 10px}.bfm-page-head h1{font-size:27px}}

/* Bordenflow 0.2 - standalone CRM shell */
html,body.bfm-standalone-page,body.bfm-login-page{margin:0!important;padding:0!important;min-height:100%;background:#f5f5f1}
body.bfm-standalone-page{overflow-x:hidden}.bfm-standalone-page .bfm-app{min-height:100vh;border-radius:0;overflow:visible}.bfm-standalone-page .bfm-sidebar{position:sticky;top:0;height:100vh;overflow:auto;z-index:30}.bfm-standalone-page .bfm-main{min-height:100vh}.bfm-standalone-page .bfm-top{position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.bfm-nav-group{margin-bottom:17px}.bfm-nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#6d6d6d;padding:0 12px 7px}.bfm-sidebar nav a{display:flex;align-items:center;gap:10px}.bfm-nav-icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 20px}.bfm-tech{display:flex!important;align-items:center;gap:10px}.bfm-side-bottom{left:17px;right:17px;bottom:18px;border-top:1px solid #2c2c2c;padding:15px 10px 0;display:flex;justify-content:space-between;align-items:center}.bfm-side-user strong,.bfm-side-user small{display:block}.bfm-side-user strong{font-size:12px}.bfm-side-user small{font-size:10px;color:#777;margin-top:2px}.bfm-top-title{display:flex;align-items:center;gap:10px}.bfm-mobile-menu{display:none;width:40px;height:40px;border:1px solid var(--bf-line);border-radius:11px;background:#fff;font-size:20px}.bfm-sidebar-backdrop{display:none}
.bfm-week{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:14px;overflow:auto;padding-bottom:10px}.bfm-day-column{min-width:190px}.bfm-day-column h3{margin:0 0 10px}.bfm-day-empty{border:1px dashed #d6d6cf;border-radius:14px;padding:16px;color:var(--bf-muted);font-size:12px}.bfm-schedule-card{background:#fff;border:1px solid var(--bf-line);border-radius:15px;padding:12px;display:grid;grid-template-columns:58px 1fr;gap:10px;margin-bottom:9px;box-shadow:0 5px 14px rgba(0,0,0,.035)}.bfm-schedule-card>strong{background:#171717;color:#fff;border-radius:11px;display:grid;place-items:center;font-size:15px;min-height:54px}.bfm-schedule-card b,.bfm-schedule-card small,.bfm-schedule-card span{display:block}.bfm-schedule-card small{font-size:10px;color:var(--bf-muted);margin-top:3px}.bfm-schedule-card span{font-size:10px;color:#9a7600;font-weight:800;margin-top:4px}

/* Login and first password */
.bfm-login-page{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#171717}.bfm-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(380px,.95fr);background:#f5f5f1}.bfm-login-brand-panel{background:linear-gradient(150deg,#101010,#1d1d1d);color:#fff;padding:64px clamp(34px,6vw,88px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.bfm-login-brand-panel:after{content:"";width:360px;height:360px;border-radius:50%;background:#ffd000;position:absolute;right:-190px;top:-150px}.bfm-login-logo{width:58px;height:58px;background:#ffd000;color:#111;border-radius:17px;display:grid;place-items:center;font-size:27px;font-weight:950;margin-bottom:24px}.bfm-login-brand-panel h1{font-size:clamp(44px,6vw,78px);letter-spacing:-.04em;margin:0 0 16px;line-height:.95}.bfm-login-brand-panel p{max-width:580px;color:#bdbdbd;font-size:17px;line-height:1.55;margin:0}.bfm-login-brand-panel small{color:#777}.bfm-login-form-panel{display:grid;place-items:center;padding:36px}.bfm-login-card{width:min(440px,100%);background:#fff;border:1px solid var(--bf-line);border-radius:22px;box-shadow:var(--bf-shadow);padding:30px;display:grid;gap:14px}.bfm-login-card h2{font-size:30px;margin:0}.bfm-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#8a6b00;font-weight:900}.bfm-login-intro{margin:0;color:var(--bf-muted);font-size:13px;line-height:1.5}.bfm-login-card label{display:grid;gap:6px;font-size:11px;font-weight:800}.bfm-login-card input:not([type=checkbox]){width:100%;border:1px solid var(--bf-line);border-radius:12px;min-height:46px;padding:11px 12px;box-sizing:border-box}.bfm-login-submit{min-height:46px;width:100%;margin-top:3px}.bfm-login-logout{text-align:center;color:#666;font-size:12px;text-decoration:none}

@media(max-width:1100px){.bfm-week{grid-template-columns:repeat(5,210px)}}
@media(max-width:760px){
  .bfm-standalone-page .bfm-app{display:block}.bfm-standalone-page .bfm-sidebar{position:fixed;left:-275px;top:0;width:260px;height:100vh;min-height:0;padding:22px 16px 20px;transition:left .22s ease;box-shadow:12px 0 36px rgba(0,0,0,.18)}.bfm-standalone-page .bfm-sidebar.is-open{left:0}.bfm-sidebar nav{display:block}.bfm-side-bottom{position:absolute;margin:0}.bfm-mobile-menu{display:grid;place-items:center}.bfm-sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:25}.bfm-sidebar-backdrop.is-open{display:block}.bfm-top-user{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bfm-week{grid-template-columns:repeat(5,220px)}
  .bfm-login-shell{grid-template-columns:1fr}.bfm-login-brand-panel{min-height:240px;padding:34px 24px}.bfm-login-brand-panel h1{font-size:46px}.bfm-login-brand-panel p{font-size:14px;max-width:420px}.bfm-login-form-panel{padding:20px 14px 36px}.bfm-login-card{padding:22px}.bfm-login-brand-panel small{margin-top:28px}
}
.bfm-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.bfm-section-head h3{margin:0}.bfm-section-head a{font-size:12px;color:#222;text-decoration:none;font-weight:800}.bfm-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bfm-quick-grid a{border:1px solid var(--bf-line);border-radius:14px;background:#fafaf7;padding:15px;text-decoration:none;color:#171717;font-weight:850}.bfm-quick-grid small{display:block;color:var(--bf-muted);font-size:10px;font-weight:600;margin-top:4px}
@media(max-width:480px){.bfm-quick-grid{grid-template-columns:1fr}}

/* Bordenflow 0.2.1 - compact account/admin menu in sidebar footer */
.bfm-account-menu{position:relative;flex:0 0 auto}
.bfm-account-menu-toggle{width:40px;height:40px;border:1px solid #353535;background:#181818;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:#fff;transition:.18s ease}
.bfm-account-menu-toggle:hover,.bfm-account-menu-toggle[aria-expanded="true"]{background:#242424;border-color:#4a4a4a}
.bfm-account-menu-toggle span{display:block;width:17px;height:2px;border-radius:999px;background:currentColor}
.bfm-account-menu-popover{display:none;position:absolute;right:0;bottom:50px;width:238px;background:#191919;border:1px solid #343434;border-radius:14px;padding:7px;box-shadow:0 18px 44px rgba(0,0,0,.34);z-index:60}
.bfm-account-menu.is-open .bfm-account-menu-popover{display:grid;gap:3px}
.bfm-account-menu-popover a{display:flex;align-items:center;gap:10px;color:#d8d8d8!important;text-decoration:none;padding:10px 11px!important;border-radius:9px!important;font-size:12px!important;line-height:1.3}
.bfm-account-menu-popover a:hover{background:#282828!important;color:#fff!important}
.bfm-account-menu-popover a.active{background:var(--bf-yellow)!important;color:#111!important;font-weight:800}
.bfm-account-menu-popover .bfm-nav-icon{width:18px;height:18px;flex-basis:18px}
.bfm-account-menu-separator{height:1px;background:#303030;margin:4px 5px}
.bfm-account-menu-popover a.bfm-account-menu-logout{color:#f0b5b5!important}
.bfm-account-menu-popover a.bfm-account-menu-logout:hover{background:#332020!important;color:#fff!important}
.bfm-side-bottom{gap:10px}
.bfm-side-user{min-width:0;flex:1}
.bfm-side-user strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.bfm-account-menu-popover{right:0;bottom:50px;width:220px}.bfm-side-bottom{left:16px;right:16px}}

/* Bordenflow 0.2.2 - layout, topbar, forms, messaging */
.bfm-content{width:min(1280px,calc(100% - 56px));max-width:none;margin:0 auto;padding:28px 0 46px}
.bfm-top{padding:0 24px}.bfm-top-actions{display:flex;align-items:center;gap:8px}.bfm-top-user{display:grid;justify-items:end;line-height:1.2;margin-left:4px}.bfm-top-user strong{font-size:12px}.bfm-top-user small{font-size:10px;color:var(--bf-muted);margin-top:2px}.bfm-top-icon{width:40px;height:40px;border:1px solid var(--bf-line);background:#fff;border-radius:12px;display:grid;place-items:center;position:relative;color:#222;cursor:pointer}.bfm-top-icon:hover{background:#fafaf7}.bfm-top-icon .bfm-nav-icon{width:19px;height:19px}.bfm-top-badge{position:absolute;right:-3px;top:-4px;min-width:17px;height:17px;border-radius:999px;background:var(--bf-yellow);color:#111;border:2px solid var(--bf-bg);font-size:9px;font-weight:900;display:grid;place-items:center;padding:0 3px}
.bfm-drawer-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.18);z-index:69}.bfm-drawer-backdrop.is-open{display:block}.bfm-drawer{position:fixed;top:0;right:-430px;width:min(400px,calc(100vw - 20px));height:100vh;background:#fff;border-left:1px solid var(--bf-line);box-shadow:-20px 0 48px rgba(0,0,0,.12);z-index:70;transition:right .22s ease;display:flex;flex-direction:column}.bfm-drawer.is-open{right:0}.bfm-drawer-head{min-height:72px;border-bottom:1px solid var(--bf-line);display:flex;align-items:center;justify-content:space-between;padding:14px 18px}.bfm-drawer-head strong,.bfm-drawer-head small{display:block}.bfm-drawer-head small{font-size:11px;color:var(--bf-muted);margin-top:2px}.bfm-drawer-head button{width:34px;height:34px;border:1px solid var(--bf-line);background:#fff;border-radius:10px;font-size:21px}.bfm-drawer-body{padding:16px;overflow:auto;display:grid;gap:10px}.bfm-notification-row{display:grid;gap:3px;padding:13px;border:1px solid var(--bf-line);border-radius:13px;text-decoration:none;color:#171717;background:#fafaf7}.bfm-notification-row:hover{border-color:#d7b500}.bfm-notification-row span{font-size:11px;color:var(--bf-muted)}.bfm-drawer-empty{padding:20px;border:1px dashed #d6d6cf;border-radius:13px;color:var(--bf-muted);font-size:12px;text-align:center}.bfm-drawer-all{color:#222;text-decoration:none;font-size:12px;font-weight:850;text-align:center;padding:10px}.bfm-quick-message textarea{min-height:120px}
.bfm-editor-layout{align-items:start}.bfm-form-uniform>label,.bfm-form-uniform>.bfm-form-grid>label{width:100%}.bfm-form input,.bfm-form select{min-height:46px}.bfm-form select{appearance:auto}.bfm-btn-block{width:100%;min-height:44px}.bfm-form-grid{align-items:end}.bfm-form-grid>label{min-width:0}
.bfm-schedule-editor{margin-top:2px}.bfm-schedule-row{grid-template-columns:repeat(3,minmax(0,1fr)) 42px;gap:12px;padding:14px;align-items:end}.bfm-schedule-row label{min-width:0}.bfm-schedule-row select,.bfm-schedule-row input{height:46px;min-height:46px}.bfm-duration{position:relative;display:block}.bfm-duration input{width:100%!important;padding-right:46px!important}.bfm-duration span{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--bf-muted);pointer-events:none}.bfm-remove-slot{height:46px;width:42px}.bfm-add-slot{display:inline-flex;align-items:center;margin-top:10px}
.bfm-booking-note{display:block;margin-top:8px;padding:8px 10px;border-radius:10px;background:#f7f7f2;color:#565650;font-size:11px;line-height:1.4}.bfm-users-layout{align-items:start}.bfm-user-box-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.bfm-role-summary{font-size:11px;line-height:1.5;color:#5f5f57;background:#fafaf4;border:1px solid var(--bf-line);border-radius:12px;padding:10px 12px}.bfm-form fieldset{border:1px solid var(--bf-line);border-radius:13px;padding:12px}.bfm-form fieldset legend{font-size:11px;font-weight:850;padding:0 5px}.bfm-form fieldset[hidden]{display:none}.bfm-existing-user-form{margin-top:10px}.bfm-settings-layout{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);align-items:start}
.bfm-messages-layout{display:grid;grid-template-columns:250px minmax(0,1fr) 290px;gap:14px;align-items:stretch;min-height:650px}.bfm-parent-chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;min-height:620px}.bfm-chat-contacts,.bfm-inquiries{overflow:hidden}.bfm-chat-contacts-head{padding:16px;border-bottom:1px solid var(--bf-line)}.bfm-chat-contacts-head strong,.bfm-chat-contacts-head small{display:block}.bfm-chat-contacts-head small{font-size:10px;color:var(--bf-muted);margin-top:3px}.bfm-chat-contact{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 13px;text-decoration:none;color:#171717;border-bottom:1px solid #f0f0ea}.bfm-chat-contact:hover,.bfm-chat-contact.active{background:#fff9dc}.bfm-chat-contact strong,.bfm-chat-contact small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bfm-chat-contact small{font-size:10px;color:var(--bf-muted);margin-top:2px}.bfm-chat-avatar{width:38px;height:38px;border-radius:12px;background:#f2ebc9;display:grid;place-items:center;font-weight:900}.bfm-chat-unread{min-width:20px;height:20px;border-radius:999px;background:var(--bf-yellow);display:grid;place-items:center;font-size:9px}.bfm-chat-empty{padding:12px 16px}.bfm-chat-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}.bfm-chat-head{padding:14px 16px;border-bottom:1px solid var(--bf-line)}.bfm-chat-head strong,.bfm-chat-head small{display:block}.bfm-chat-head small{font-size:10px;color:var(--bf-muted);margin-top:2px}.bfm-chat-history{padding:18px;display:flex;flex-direction:column;gap:9px;overflow:auto;flex:1;background:#fafaf7;min-height:390px;max-height:520px}.bfm-chat-bubble{max-width:76%;border-radius:15px;padding:10px 12px}.bfm-chat-bubble p{margin:0;font-size:12px;line-height:1.5}.bfm-chat-bubble small{display:block;font-size:9px;margin-top:5px;opacity:.66}.bfm-chat-bubble.mine{align-self:flex-end;background:#171717;color:#fff;border-bottom-right-radius:5px}.bfm-chat-bubble.theirs{align-self:flex-start;background:#fff;border:1px solid var(--bf-line);border-bottom-left-radius:5px}.bfm-chat-placeholder{margin:auto;padding:24px;color:var(--bf-muted);font-size:12px;text-align:center}.bfm-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px;border-top:1px solid var(--bf-line);background:#fff}.bfm-chat-compose textarea{border:1px solid var(--bf-line);border-radius:12px;padding:10px 12px;resize:none;min-height:58px}.bfm-chat-compose .bfm-btn{align-self:end;min-height:42px}.bfm-inquiry-row{padding:13px 15px;border-bottom:1px solid var(--bf-line)}.bfm-inquiry-row strong,.bfm-inquiry-row small{display:block}.bfm-inquiry-row small{font-size:10px;color:var(--bf-muted);margin-top:2px}.bfm-inquiry-row p{font-size:11px;color:#555;margin:7px 0 0;line-height:1.45}
@media(max-width:1180px){.bfm-messages-layout{grid-template-columns:220px minmax(0,1fr)}.bfm-inquiries{grid-column:1/-1}.bfm-settings-layout{grid-template-columns:1fr}}
@media(max-width:760px){.bfm-content{width:auto;margin:0;padding:20px 14px 40px}.bfm-top-user{display:none}.bfm-top{padding:0 12px}.bfm-drawer{width:min(390px,100vw)}.bfm-schedule-row{grid-template-columns:1fr}.bfm-schedule-row .bfm-remove-slot{grid-column:1;justify-self:end}.bfm-form-grid{grid-template-columns:1fr}.bfm-messages-layout,.bfm-parent-chat-layout{grid-template-columns:1fr;min-height:0}.bfm-chat-contacts{max-height:320px;overflow:auto}.bfm-chat-history{min-height:330px;max-height:430px}.bfm-chat-compose{grid-template-columns:1fr}.bfm-chat-compose .bfm-btn{width:100%}}


/* Bordenflow 0.2.3 - polished, uniform controls and account menu */
.bfm-form-uniform,
.bfm-form,
.bfm-form-grid,
.bfm-schedule-row{min-width:0}

/* Every text input and select has the same visual dimensions. */
.bfm-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.bfm-form select,
.bfm-login input:not([type="checkbox"]):not([type="radio"]),
.bfm-quick-message select,
.bfm-quick-message input:not([type="checkbox"]):not([type="radio"]){
  display:block;
  width:100%;
  min-width:0;
  height:48px;
  min-height:48px;
  margin:0;
  padding:0 14px;
  border:1px solid var(--bf-line);
  border-radius:12px;
  background-color:#fff;
  color:#1a1a1a;
  font:inherit;
  font-size:13px;
  font-weight:500;
  line-height:46px;
  box-shadow:none;
}

/* Remove browser-specific small native selects and give them one consistent arrow. */
.bfm-form select,
.bfm-quick-message select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5f59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:16px 16px;
}
.bfm-form select::-ms-expand{display:none}

.bfm-form input[type="datetime-local"],
.bfm-form input[type="date"],
.bfm-form input[type="time"],
.bfm-form input[type="number"]{line-height:normal}
.bfm-form input:focus,
.bfm-form select:focus,
.bfm-form textarea:focus{
  border-color:#c8a900;
  outline:0;
  box-shadow:0 0 0 3px rgba(255,208,0,.16);
}
.bfm-form textarea{width:100%;border-radius:12px;padding:13px 14px;font:inherit;font-size:13px;line-height:1.5}

/* Form rhythm: labels and paired columns line up exactly. */
.bfm-form-uniform{gap:14px}
.bfm-form-uniform>label,
.bfm-form-uniform>.bfm-form-grid,
.bfm-form-grid>label{min-width:0;width:100%;margin:0}
.bfm-form label{gap:7px;font-size:11px;line-height:1.2}
.bfm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-items:end}
.bfm-form-grid>label{align-self:stretch}
.bfm-form-grid>label>input,
.bfm-form-grid>label>select{margin-top:auto}

/* Group schedule: day, hour and duration are equally sized and aligned. */
.bfm-schedule-editor{padding-top:18px;margin-top:4px}
.bfm-schedule-title{margin-bottom:2px}
.bfm-schedule-row{
  grid-template-columns:repeat(3,minmax(0,1fr)) 42px;
  gap:14px;
  padding:15px;
  margin-top:12px;
  align-items:end;
  background:#fafaf7;
}
.bfm-schedule-row label{display:grid;grid-template-rows:auto 48px;gap:7px;min-width:0;align-self:stretch}
.bfm-schedule-row select,
.bfm-schedule-row input{
  width:100%;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
}
.bfm-duration{position:relative;display:block;height:48px;min-width:0}
.bfm-duration input{padding-right:48px!important}
.bfm-duration span{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  font-weight:700;
  color:#77776f;
  pointer-events:none;
}
.bfm-remove-slot{height:48px;width:42px;border-radius:11px}
.bfm-add-slot{margin-top:11px}

/* Color controls remain compact on purpose. */
.bfm-form input[type="color"]{height:46px;min-height:46px;padding:7px;border-radius:12px}

/* The account menu stays visually inside the sidebar instead of drifting left. */
.bfm-account-menu-popover{
  width:216px;
  right:-7px;
  bottom:52px;
  padding:8px;
  border-radius:15px;
  border-color:#363636;
  background:#181818;
  box-shadow:0 20px 50px rgba(0,0,0,.38);
}
.bfm-account-menu.is-open .bfm-account-menu-popover{gap:4px}
.bfm-account-menu-popover a{
  min-height:43px;
  width:100%;
  padding:10px 11px!important;
  border-radius:10px!important;
  gap:10px;
  font-size:11.5px!important;
  font-weight:600;
  line-height:1.25;
  text-align:left;
}
.bfm-account-menu-popover a span{min-width:0;display:block}
.bfm-account-menu-popover .bfm-nav-icon{width:18px;height:18px;flex:0 0 18px}
.bfm-account-menu-separator{margin:5px 4px}

/* On the standalone CRM domain anchor the account menu to the sidebar itself. */
.bfm-standalone-page .bfm-account-menu-popover{
  position:fixed;
  left:14px;
  right:auto;
  bottom:76px;
  width:222px;
}

@media(max-width:760px){
  .bfm-form-grid{grid-template-columns:1fr;gap:14px}
  .bfm-schedule-row{grid-template-columns:1fr;gap:12px}
  .bfm-schedule-row label{grid-template-rows:auto 48px}
  .bfm-schedule-row .bfm-remove-slot{grid-column:1;justify-self:end}
  .bfm-standalone-page .bfm-account-menu-popover{left:16px;bottom:76px;width:228px;max-width:calc(100vw - 32px)}
}


/* Bordenflow 0.2.4 - refined schedule editor, venue details and company data */
.bfm-schedule-row{
  grid-template-columns:minmax(190px,1.45fr) minmax(125px,.78fr) minmax(145px,.9fr) 42px;
  gap:14px;
  align-items:end;
}
.bfm-schedule-row label:first-child{min-width:190px}
.bfm-schedule-row .bfm-slot-day{padding-left:15px;padding-right:44px;font-weight:600}
.bfm-schedule-row .bfm-slot-time,.bfm-schedule-row .bfm-slot-duration{font-weight:600}
.bfm-add-slot{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px;
  min-height:34px;
  padding:5px 3px!important;
  margin-top:12px!important;
  line-height:1.2;
}
.bfm-add-slot span{
  width:24px!important;
  height:24px!important;
  min-width:24px;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:7px!important;
  background:var(--bf-yellow)!important;
  color:#111;
  font-size:17px;
  font-weight:900;
  line-height:1!important;
  text-align:center;
}
.bfm-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.bfm-location-card{min-width:0}
.bfm-location-card .bfm-section-head small{display:block;color:var(--bf-muted);font-size:11px;margin-top:3px}
.bfm-location-card-new{border-style:dashed}
.bfm-settings-location-link{align-self:start}
@media(max-width:900px){
  .bfm-schedule-row{grid-template-columns:minmax(180px,1.3fr) minmax(120px,.8fr) minmax(135px,.9fr) 42px}
  .bfm-location-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .bfm-schedule-row{grid-template-columns:1fr;gap:12px}
  .bfm-schedule-row label:first-child{min-width:0}
  .bfm-schedule-row .bfm-remove-slot{grid-column:1;justify-self:end}
  .bfm-add-slot{width:100%;justify-content:flex-start}
}


/* Bordenflow 0.2.5 - rebuilt weekly schedule editor */
.bfm-app .bfm-schedule-editor{
  margin-top:8px;
  padding-top:18px;
  border-top:1px solid var(--bf-line);
}
.bfm-app .bfm-schedule-title{
  margin-bottom:12px;
}
.bfm-app .bfm-schedule-title strong{
  font-size:14px;
  line-height:1.25;
}
.bfm-app .bfm-schedule-title small{
  max-width:720px;
  margin-top:5px;
  line-height:1.45;
}
.bfm-app #bfm-schedule-rows{
  display:grid;
  gap:12px;
}
.bfm-app .bfm-schedule-row{
  display:grid!important;
  grid-template-columns:minmax(250px,1.65fr) minmax(135px,.72fr) minmax(155px,.82fr) 44px!important;
  gap:14px!important;
  align-items:end!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid #e3e2da!important;
  border-radius:16px!important;
  background:#fafaf7!important;
  box-shadow:0 1px 0 rgba(18,18,18,.02)!important;
}
.bfm-app .bfm-schedule-row label{
  display:grid!important;
  grid-template-rows:17px 50px!important;
  gap:7px!important;
  min-width:0!important;
  margin:0!important;
  align-content:end!important;
  font-size:11px!important;
  font-weight:800!important;
  color:#272724!important;
}
.bfm-app .bfm-schedule-row label:first-child{
  min-width:0!important;
}
.bfm-app .bfm-schedule-row select,
.bfm-app .bfm-schedule-row input{
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  margin:0!important;
  padding:0 15px!important;
  border:1px solid #deddd5!important;
  border-radius:13px!important;
  background-color:#fff!important;
  box-shadow:none!important;
  color:#20201e!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:50px!important;
}
.bfm-app .bfm-schedule-row .bfm-slot-day{
  padding-left:16px!important;
  padding-right:44px!important;
  font-size:14px!important;
}
.bfm-app .bfm-duration{
  position:relative!important;
  display:block!important;
  height:50px!important;
  min-width:0!important;
}
.bfm-app .bfm-duration input{
  padding-right:50px!important;
}
.bfm-app .bfm-duration span{
  position:absolute!important;
  right:15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  color:#77776f!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  pointer-events:none!important;
}
.bfm-app .bfm-remove-slot{
  width:44px!important;
  height:50px!important;
  padding:0!important;
  border:1px solid #deddd5!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#77776f!important;
  display:grid!important;
  place-items:center!important;
  font-size:21px!important;
  line-height:1!important;
}
.bfm-app .bfm-remove-slot:hover{
  border-color:#e7b7b7!important;
  background:#fff7f7!important;
  color:#b84444!important;
}
.bfm-app .bfm-add-slot{
  width:100%!important;
  min-height:48px!important;
  margin:12px 0 0!important;
  padding:10px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px dashed #d5d3c7!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#252522!important;
  font-size:12px!important;
  font-weight:850!important;
  text-align:center!important;
}
.bfm-app .bfm-add-slot:hover{
  background:#fffbee!important;
  border-color:#d6b400!important;
}
.bfm-app .bfm-add-slot span{
  width:25px!important;
  height:25px!important;
  min-width:25px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  background:var(--bf-yellow)!important;
  color:#111!important;
  font-size:18px!important;
  font-weight:950!important;
  line-height:1!important;
}
@media(max-width:980px){
  .bfm-app .bfm-schedule-row{
    grid-template-columns:minmax(210px,1.45fr) minmax(125px,.8fr) minmax(145px,.9fr) 44px!important;
  }
}
@media(max-width:760px){
  .bfm-app .bfm-schedule-row{
    grid-template-columns:1fr 1fr!important;
    gap:13px!important;
    padding:14px!important;
  }
  .bfm-app .bfm-schedule-row label:first-child{
    grid-column:1 / -1!important;
  }
  .bfm-app .bfm-schedule-row label:nth-child(2),
  .bfm-app .bfm-schedule-row label:nth-child(3){
    grid-column:auto!important;
  }
  .bfm-app .bfm-schedule-row .bfm-remove-slot{
    grid-column:2!important;
    justify-self:end!important;
  }
}
@media(max-width:480px){
  .bfm-app .bfm-schedule-row{
    grid-template-columns:1fr!important;
  }
  .bfm-app .bfm-schedule-row label,
  .bfm-app .bfm-schedule-row label:first-child,
  .bfm-app .bfm-schedule-row label:nth-child(2),
  .bfm-app .bfm-schedule-row label:nth-child(3){
    grid-column:1!important;
  }
  .bfm-app .bfm-schedule-row .bfm-remove-slot{
    grid-column:1!important;
    justify-self:end!important;
  }
  .bfm-app .bfm-add-slot{
    min-height:50px!important;
  }
}

/* Bordenflow 0.2.6 - full-width weekly schedule row */
.bfm-app #bfm-schedule-rows{
  display:grid!important;
  gap:12px!important;
  width:100%!important;
}
.bfm-app .bfm-schedule-row{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid #e2e1d8!important;
  border-radius:16px!important;
  background:#fafaf7!important;
  box-shadow:0 1px 0 rgba(18,18,18,.02)!important;
}
.bfm-app .bfm-schedule-fields{
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr) minmax(0,1fr)!important;
  gap:14px!important;
  width:100%!important;
  align-items:end!important;
}
.bfm-app .bfm-schedule-row:not(.is-single) .bfm-schedule-fields{
  padding-right:38px!important;
}
.bfm-app .bfm-schedule-field{
  display:grid!important;
  grid-template-rows:auto 50px!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  color:#272724!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.2!important;
}
.bfm-app .bfm-schedule-field>span{
  display:block!important;
  min-width:0!important;
}
.bfm-app .bfm-schedule-field select,
.bfm-app .bfm-schedule-field input{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:50px!important;
  min-height:50px!important;
  margin:0!important;
  padding:0 15px!important;
  border:1px solid #deddd5!important;
  border-radius:13px!important;
  background-color:#fff!important;
  box-shadow:none!important;
  color:#20201e!important;
  font-size:14px!important;
  font-weight:650!important;
}
.bfm-app .bfm-schedule-field-day select{
  padding-left:16px!important;
  padding-right:44px!important;
}
.bfm-app .bfm-schedule-field .bfm-duration{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:50px!important;
  min-width:0!important;
}
.bfm-app .bfm-schedule-field .bfm-duration input{
  padding-right:52px!important;
}
.bfm-app .bfm-schedule-field .bfm-duration>span{
  position:absolute!important;
  right:15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#77776f!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  pointer-events:none!important;
}
.bfm-app .bfm-schedule-row .bfm-remove-slot{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  z-index:2!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  border:1px solid #deddd5!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#77776f!important;
  place-items:center!important;
  font-size:18px!important;
  line-height:1!important;
}
.bfm-app .bfm-schedule-row .bfm-remove-slot:hover{
  border-color:#e7b7b7!important;
  background:#fff7f7!important;
  color:#b84444!important;
}
.bfm-app .bfm-add-slot{
  width:100%!important;
  min-height:50px!important;
  margin:12px 0 0!important;
  padding:10px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px dashed #d5d3c7!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#252522!important;
  font-size:12px!important;
  font-weight:850!important;
}
.bfm-app .bfm-add-slot span{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  background:var(--bf-yellow)!important;
  color:#111!important;
  font-size:18px!important;
  font-weight:950!important;
  line-height:1!important;
}
@media(max-width:900px){
  .bfm-app .bfm-schedule-fields{
    grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(0,1fr)!important;
    gap:12px!important;
  }
}
@media(max-width:680px){
  .bfm-app .bfm-schedule-row{padding:14px!important}
  .bfm-app .bfm-schedule-fields,
  .bfm-app .bfm-schedule-row:not(.is-single) .bfm-schedule-fields{
    grid-template-columns:1fr 1fr!important;
    padding-right:0!important;
  }
  .bfm-app .bfm-schedule-field-day{grid-column:1 / -1!important}
  .bfm-app .bfm-schedule-row:not(.is-single){padding-top:44px!important}
}
@media(max-width:460px){
  .bfm-app .bfm-schedule-fields{
    grid-template-columns:1fr!important;
  }
  .bfm-app .bfm-schedule-field-day{grid-column:1!important}
}
