:root{
  /* Use a calm primary color (avoid "alert red" look) */
  --banto-primary: #2563eb;
  --banto-primary-700: #1d4ed8;
  /* Brand color for "banto" only */
  --banto-brand: #800000;
  --banto-brand-700: #5f0000;
  --banto-text: #1f2937;
  --banto-muted: #6b7280;
  --banto-bg: #f6f8fb;
  --banto-surface: #ffffff;
  --banto-border: #e5e7eb;
  --banto-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --banto-radius: 12px;
}

html, body{
  height: 100%;
}

body{
  background: var(--banto-bg) !important;
  color: var(--banto-text);
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color: var(--banto-primary);
}

a:hover,
a:focus{
  color: var(--banto-primary-700);
  text-decoration: none;
}

/* Navbar */
.navbar,
.navbar.navbar-default{
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 12px 30px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px){
  .navbar.navbar-default,
  .navbar.navbar-default.navbar-static-top,
  #slide-nav.navbar{
    border-radius: 14px !important;
  }
}

.navbar.navbar-default.navbar-static-top{
  border-radius: 14px !important;
}

#slide-nav{
  border-radius: 14px !important;
  background: var(--banto-surface) !important;
  border: 1px solid var(--banto-border) !important;
}

#slide-nav .navbar-header{
  text-align: left !important;
}

.navbar-brand{
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--banto-primary) !important;
}

.brand-banto{
  color: var(--banto-brand) !important;
  font-weight: 800;
}

.navbar-brand:hover .brand-banto,
.navbar-brand:focus .brand-banto{
  color: var(--banto-brand-700) !important;
}

.banto-user-roles{
  clear: both;
  text-align: left;
  padding-left: 15px;
  margin-top: -10px;
  margin-bottom: 6px;
  color: var(--banto-muted);
}

.banto-user-roles small{
  color: var(--banto-muted);
}

.navbar-default .navbar-nav > li > a{
  font-weight: 500;
}

/* Dropdowns */
.dropdown-menu{
  border-radius: 10px;
  border: 1px solid var(--banto-border);
  box-shadow: var(--banto-shadow);
  padding: 8px 0;
}

.dropdown-menu > li > a{
  padding: 10px 14px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus{
  background: rgba(37, 99, 235, 0.08);
}

/* Panels / cards */
.panel{
  border-radius: var(--banto-radius);
  border: 1px solid var(--banto-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.banto-hero{
  padding: 14px 6px 6px 6px;
}

.banto-hero h2{
  margin-top: 0;
  margin-bottom: 6px;
}

.banto-hero .banto-hero-actions{
  margin-top: 12px;
}

.banto-card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* 6.34 containment contract: Bootstrap columns and nested controls may not escape a CSS grid cell. */
.banto-card-grid > *{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.banto-card-grid > [class*="col-"]{
  float: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}
.banto-card-grid .row,
.banto-card-grid .panel,
.banto-card-grid .panel-body,
.banto-card-grid .form-group,
.banto-card-grid .input-group{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.banto-card-grid input,
.banto-card-grid select,
.banto-card-grid textarea,
.banto-card-grid .form-control,
.banto-card-grid .btn-group{
  min-width: 0;
  max-width: 100%;
}


@media (max-width: 1199px){
  .banto-card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .banto-card-grid{ grid-template-columns: 1fr; }
}

.banto-study-card{
  border-radius: var(--banto-radius);
  border: 1px solid var(--banto-border);
  background: var(--banto-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.banto-study-card .banto-study-card-head{
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid var(--banto-border);
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
}

.banto-study-card .banto-study-card-title{
  font-weight: 800;
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
}

.banto-study-card .banto-study-card-sub{
  margin-top: 6px;
  color: var(--banto-muted);
  font-size: 13px;
  line-height: 1.35;
}

.banto-study-card .banto-study-card-body{
  padding: 12px 14px;
  flex: 1;
}

.banto-study-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--banto-muted);
  font-size: 13px;
}

.banto-study-meta li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.banto-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--banto-border);
  background: rgba(37, 99, 235, 0.08);
  color: var(--banto-primary-700);
}

.banto-badge-success{
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
}

.banto-badge-muted{
  background: rgba(107, 114, 128, 0.10);
  color: #374151;
}

.banto-study-card .banto-study-card-foot{
  padding: 12px 14px 14px 14px;
  border-top: 1px solid var(--banto-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.banto-study-card .banto-study-card-foot .btn{
  white-space: nowrap;
}

.banto-search{
  margin: 10px 0 12px 0;
}

.panel-heading,
.panel-default > .panel-heading,
.panel-info > .panel-heading,
.panel-success > .panel-heading,
.panel-warning > .panel-heading,
.panel-danger > .panel-heading{
  background: linear-gradient(180deg, #ffffff, #fbfbfd) !important;
  border-bottom: 1px solid var(--banto-border) !important;
  color: var(--banto-text) !important;
}

.panel-default,
.panel-info,
.panel-success,
.panel-warning,
.panel-danger{
  border-left-width: 4px;
  border-left-style: solid;
}

.panel-default{ border-left-color: var(--banto-border); }
.panel-info{ border-left-color: rgba(14, 165, 233, 0.9); }
.panel-success{ border-left-color: rgba(34, 197, 94, 0.9); }
.panel-warning{ border-left-color: rgba(245, 158, 11, 0.9); }
.panel-danger{ border-left-color: rgba(239, 68, 68, 0.9); }

.panel-title,
.panel-heading h1,
.panel-heading h2,
.panel-heading h3,
.panel-heading h4{
  font-weight: 700;
}

/* Tables */
.table{
  background: var(--banto-surface);
}

.table > thead > tr > th{
  border-bottom: 1px solid var(--banto-border);
  color: #374151;
  font-weight: 700;
}

.table > tbody > tr:hover{
  background: rgba(17, 24, 39, 0.02);
}

/* Forms */
.form-control{
  border-radius: 10px;
  border-color: var(--banto-border);
  box-shadow: none;
}

.form-control:focus{
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* Buttons */
.btn{
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary{
  background: var(--banto-primary);
  border-color: var(--banto-primary);
}

.btn-primary:hover,
.btn-primary:focus{
  background: var(--banto-primary-700);
  border-color: var(--banto-primary-700);
}

/* Legacy nav hover colors (override orange/maroon highlights) */
.nav li a:hover,
.nav li a:focus,
.nav li a:active{
  color: var(--banto-primary) !important;
}

#slide-nav .navbar-toggle.slide-active .icon-bar{
  background: var(--banto-primary) !important;
}

.btn-outline{
  border-radius: 10px;
}

/* Alerts */
.alert{
  border-radius: 12px;
  border: 1px solid var(--banto-border);
}

/* Layout spacing helpers */
.page-header{
  border-bottom: 1px solid var(--banto-border);
  color: var(--banto-text);
}

/* Make "info" text less loud, more consistent */
.text-info{
  color: var(--banto-muted) !important;
}

/* Wells as cards */
.well,
.well.well-sm{
  border-radius: 12px;
  border: 1px solid var(--banto-border);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

#page-content > .container{
  background: var(--banto-surface);
  border: 1px solid var(--banto-border);
  border-radius: var(--banto-radius);
  box-shadow: var(--banto-shadow);
  padding: 18px 22px;
  position: relative;
}

@media (max-width: 767px){
  #page-content > .container{
    padding: 14px 14px;
    border-radius: 10px;
  }
}

.banto-create-experiment-wrap{
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 20;
}

.banto-create-experiment-btn{
  padding: 10px 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.banto-create-experiment-text{
  white-space: nowrap;
}

@media (max-width: 767px){
  .banto-create-experiment-wrap{
    position: static;
    text-align: right;
    margin-bottom: 10px;
  }
  .banto-create-experiment-text{
    white-space: normal;
  }
  .banto-create-experiment-btn{
    border-radius: 12px;
    padding: 10px 12px;
  }
}

.banto-title-link{
  font-weight: 600;
}

.banto-title-link:hover,
.banto-title-link:focus{
  text-decoration: underline;
}

.banto-status-hint{
  margin-top: 4px;
  line-height: 1.2;
}

.banto-calendar-context{
  margin-top: 6px;
}

.banto-empty-state{
  padding: 12px 14px;
  border: 1px dashed var(--banto-border);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.03);
}

.banto-hint{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--banto-border);
  background: rgba(15, 23, 42, 0.02);
}

.banto-hint--neutral{
  background: rgba(15, 23, 42, 0.02);
}

.banto-hint-title{
  font-weight: 600;
}

.banto-hint-link{
  font-weight: 600;
}

.banto-subsection{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--banto-border);
}

.banto-subsection-title{
  margin: 0 0 4px 0;
  font-weight: 700;
}

.banto-subsection:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.banto-guided-setup{
  padding: 12px 12px 2px 12px;
  border: 1px solid var(--banto-border);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.03);
}

.banto-guided-block{
  padding: 10px 12px;
  border: 1px solid var(--banto-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.banto-guided-block label{
  font-weight: 700;
  margin-bottom: 6px;
}

.banto-guided-summary{
  border-radius: 12px;
  overflow: hidden;
}

.banto-guided-summary .panel-heading{
  background: rgba(15, 23, 42, 0.03);
}

tr.banto-selected-row > td{
  background: rgba(37, 99, 235, 0.06) !important;
}

/* DataTables: keep it clean */
table.dataTable.no-footer{
  border-bottom: 1px solid var(--banto-border) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  border-radius: 10px;
  border: 1px solid var(--banto-border);
  padding: 6px 10px;
}

/* Footer/version label */
.banto-footer-version{
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

footer .banto-footer-version{
  display: inline-block;
}

/* Public footer visibility (1.61) */
.banto-public-footer{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clear: both;
  min-height: 72px;
  padding: 18px 12px 24px;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 2000;
}
.banto-public-footer .subtleinfo,
.banto-public-footer a .subtleinfo{
  color: #8b95a1;
}
.banto-public-footer a:hover .subtleinfo{
  color: #5f6b7a;
  text-decoration: underline;
}
body.banto-has-side-menu .banto-public-footer{
  margin-left: 248px;
}
@media (max-width: 991px){
  body.banto-has-side-menu .banto-public-footer{
    margin-left: 0;
  }
}

/* Dashboard appointment timeline in datatable-participant */
.banto-appointment-list{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
}

.banto-appointment-link{
  display: block;
  position: relative;
  padding: 3px 6px 3px 10px;
  border-left: 3px solid transparent;
  border-radius: 4px;
  text-decoration: none !important;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.banto-appointment-status{
  display: inline-block;
  min-width: 62px;
  margin-right: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.banto-appointment-time{
  white-space: nowrap;
}

.banto-appointment-past{
  color: #8b98a8 !important;
  border-left-color: #d1d5db;
  background: #f8fafc;
}

.banto-appointment-past .banto-appointment-status,
.banto-appointment-past .banto-appointment-time{
  color: #8b98a8 !important;
}

.banto-appointment-future{
  color: #0f6e8d !important;
  border-left-color: #2bb8d6;
  background: #eef9fc;
  font-weight: 600;
}

.banto-appointment-current{
  color: #0f5132 !important;
  border-left-color: #198754;
  background: #eaf7ef;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.18);
}

.banto-appointment-link:hover,
.banto-appointment-link:focus{
  text-decoration: none !important;
  filter: brightness(0.98);
}

.banto-now-marker{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.banto-now-marker::before,
.banto-now-marker::after{
  content: "";
  height: 1px;
  background: #ef4444;
  flex: 1 1 auto;
  opacity: 0.7;
}

/* Public application shell: one global side menu + lightweight top bar */
body.banto-has-side-menu{
  background: #f6f8fb !important;
}

.banto-app-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--banto-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.banto-topbar{
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.banto-topbar-left{
  width: 230px;
  flex: 0 0 230px;
}

.banto-brand-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.banto-brand-link:hover,
.banto-brand-link:focus{
  color: #111827;
  text-decoration: none;
}

.banto-brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.banto-brand-word{
  font-size: 19px;
  letter-spacing: 0.01em;
}

.banto-topbar-center{
  flex: 1 1 auto;
  min-width: 180px;
}

.banto-global-search{
  max-width: 560px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--banto-border);
  border-radius: 12px;
  color: var(--banto-muted);
  background: #fbfdff;
}

.banto-topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.banto-topbar-icon{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--banto-border);
  background: #fff;
  color: #334155;
}

.banto-language-form{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--banto-border);
  border-radius: 999px;
  background: #fff;
  color: #334155;
}

.banto-language-form select{
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 600;
  outline: none;
  max-width: 110px;
}

.banto-user-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.banto-user-toggle:hover,
.banto-user-toggle:focus{
  color: #111827;
  text-decoration: none;
}

.banto-user-avatar{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--banto-primary);
}

.banto-user-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.banto-user-text small{
  color: var(--banto-muted);
  font-size: 11px;
  margin-top: 2px;
}

.banto-shell{
  display: block;
}

.banto-side-menu{
  position: fixed;
  left: 0;
  top: 65px;
  bottom: 0;
  width: 248px;
  z-index: 900;
  padding: 16px 14px;
  background: #ffffff;
  border-right: 1px solid var(--banto-border);
  overflow-y: auto;
}

.banto-side-menu nav{
  padding-bottom: 14px;
}

.banto-side-section{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.banto-side-heading{
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: 0 0 8px 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  background: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.banto-side-heading:hover{
  color: var(--banto-primary);
  text-decoration: none;
}

.banto-side-heading:focus{
  color: var(--banto-primary);
  outline: 2px solid var(--banto-focus, #93c5fd);
  outline-offset: 3px;
}

.banto-side-heading i{
  flex: 0 0 auto;
  width: 10px;
  font-size: 12px;
  text-align: center;
}

.banto-side-section-content[hidden]{
  display: none !important;
}

/* 5.76: App sidebar hierarchy mirrors the proven administration navigation.
   Section children are a real second level instead of looking like peers of
   the section heading. Context/page children then indent one level further. */
.banto-side-section-content{
  margin: 3px 0 8px 13px;
  padding-left: 10px;
  border-left: 1px solid #e2e8f0;
}
.banto-side-section-content > .banto-side-link{
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.banto-side-section-help{
  margin: 2px 10px 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.banto-side-subheading{
  margin: 14px 10px 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.banto-side-section-help + .banto-side-subheading{
  margin-top: 6px;
}

.banto-side-section.is-collapsed{
  padding-bottom: 2px;
}

.banto-side-link{
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  margin: 3px 0;
  padding: 9px 11px;
  border-radius: 12px;
  color: #253047;
  font-weight: 650;
}

.banto-side-link i{
  width: 18px;
  text-align: center;
  color: #334155;
}

.banto-side-link:hover,
.banto-side-link:focus,
.banto-side-link.is-active{
  background: #eff6ff;
  color: var(--banto-primary) !important;
  text-decoration: none;
}

.banto-side-link:hover i,
.banto-side-link:focus i,
.banto-side-link.is-active i{
  color: var(--banto-primary);
}

.banto-side-logout{
  margin-top: 18px;
  border-top: 1px solid #eef2f7;
  padding-top: 16px;
  color: #475569;
}

body.banto-has-side-menu #page-content{
  margin-left: 248px;
  padding-top: 22px;
}

body.banto-has-side-menu #page-content > .container{
  width: calc(100% - 48px);
  max-width: 1440px;
  margin-left: 24px;
  margin-right: 24px;
}

body.banto-has-side-menu footer{
  margin-left: 248px;
}

@media (max-width: 991px){
  .banto-topbar{
    flex-wrap: wrap;
    min-height: 64px;
    padding: 10px 14px;
  }
  .banto-topbar-left{
    width: auto;
    flex: 1 1 auto;
  }
  .banto-topbar-center{
    order: 3;
    flex-basis: 100%;
  }
  .banto-user-text{
    display: none;
  }
  body.banto-has-side-menu #page-content{
    margin-left: 0;
    padding-top: 0;
  }
  body.banto-has-side-menu #page-content > .container{
    width: auto;
    margin: 14px;
  }
  body.banto-has-side-menu footer{
    margin-left: 0;
  }
}

@media (max-width: 540px){
  .banto-brand-word{
    font-size: 16px;
  }
  .banto-global-search{
    display: none;
  }
  .banto-language-form select{
    max-width: 70px;
  }
}

/* Dashboard role overview (v1.52) */
.banto-dashboard-header-row{
  margin-bottom: 14px;
}
.banto-dashboard-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--banto-border, #e5e7eb);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.banto-dashboard-hero h2{
  margin: 0 0 4px 0;
  font-weight: 800;
  color: #0f172a;
}
.banto-dashboard-hero p{
  margin: 0;
  color: #64748b;
}
.banto-dashboard-overview{
  margin-bottom: 16px;
}
.banto-role-card{
  display: flex;
  gap: 16px;
  min-height: 172px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--banto-border, #e5e7eb);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.banto-role-card-study{
  background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 100%);
}
.banto-role-card-participant{
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.banto-role-card-next{
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}
.banto-role-icon{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--banto-primary, #2563eb);
  font-size: 22px;
}
.banto-role-card-study .banto-role-icon{
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
.banto-role-card-participant .banto-role-icon{
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.banto-role-card-next .banto-role-icon{
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}
.banto-role-body{
  min-width: 0;
  flex: 1 1 auto;
}
.banto-role-body h3{
  margin: 2px 0 6px 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.banto-role-body p{
  margin: 0 0 12px 0;
  color: #64748b;
}
.banto-next-time{
  color: #111827 !important;
  font-size: 18px;
  font-weight: 800;
}
.banto-role-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.banto-role-stats span{
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(226,232,240,0.8);
  text-align: center;
}
.banto-role-stats strong{
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
}
.banto-role-stats small{
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
}
.banto-role-body a{
  font-weight: 700;
}
.banto-dashboard-focus-row{
  margin-bottom: 18px;
}
.banto-dashboard-panel{
  border: 1px solid var(--banto-border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}
.banto-dashboard-panel .panel-heading{
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.banto-dashboard-panel .panel-heading h4{
  margin: 0 0 4px 0;
  font-weight: 800;
  color: #0f172a;
}
.banto-dashboard-panel .panel-heading small{
  color: #64748b;
}
.banto-today-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.banto-today-item{
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfdff;
  color: #0f172a;
}
.banto-today-item:hover,
.banto-today-item:focus{
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0f172a;
  text-decoration: none;
}
.banto-today-time{
  font-weight: 800;
  color: var(--banto-primary, #2563eb);
}
.banto-today-main{
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banto-today-sub{
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banto-dashboard-detail-heading{
  margin: 2px 0 10px 0;
}
.banto-dashboard-detail-heading h3{
  margin-bottom: 2px;
  font-weight: 800;
}
@media (max-width: 767px){
  .banto-dashboard-hero{
    flex-direction: column;
    align-items: flex-start;
  }
  .banto-role-card{
    min-height: 0;
  }
  .banto-role-stats{
    grid-template-columns: repeat(3, 1fr);
  }
  .banto-today-item{
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Dashboard 1.53: action-first dashboard cards */
.banto-dashboard-actions .banto-role-card{
  min-height: 150px;
}
.banto-dashboard-action-card{
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.banto-dashboard-action-card:hover,
a.banto-dashboard-action-card:focus{
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.10);
}
.banto-card-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--banto-primary, #2563eb);
}
.banto-card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.banto-card-actions a{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.banto-card-actions a:hover,
.banto-card-actions a:focus{
  border-color: #bfdbfe;
  background: #eff6ff;
  text-decoration: none;
}
.banto-today-item-linked a:hover,
.banto-today-item-linked a:focus{
  text-decoration: underline;
}
.banto-participant-detail .panel-heading{
  background: #fff;
}
.banto-contact-list dt{
  width: 80px;
  color: #64748b;
}
.banto-contact-list dd{
  margin-left: 96px;
  margin-bottom: 7px;
}
.banto-participant-appointment-list{
  margin: 0;
  padding-left: 18px;
}
.banto-participant-appointment-list li{
  margin-bottom: 5px;
}

/* Dashboard hero action: single create-study button centered within the dashboard header area. */
.banto-dashboard-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.banto-dashboard-hero-text{
  min-width: 0;
}
.banto-dashboard-hero-create{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.20);
}
@media (max-width: 767px){
  .banto-dashboard-hero{
    align-items: flex-start;
    flex-direction: column;
  }
  .banto-dashboard-hero-create{
    width: 100%;
    border-radius: 12px;
  }
}

/* Study overview refactor (1.55) */
.banto-study-overview-panel {
  border: 1px solid #d9e8f7;
  box-shadow: 0 8px 24px rgba(23, 73, 118, 0.06);
}
.banto-study-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.banto-study-overview-heading h4 {
  margin: 0 0 4px;
  font-weight: 700;
}
.banto-context-help {
  color: #7f99b4;
  margin-left: 6px;
  cursor: help;
  font-size: 0.95em;
}
.banto-study-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #e5f0fb;
}
.banto-study-filtergroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.banto-filter-label {
  font-weight: 700;
  color: #405971;
  margin-right: 2px;
}
.banto-study-filter {
  border-radius: 999px !important;
  padding: 4px 10px;
}
.banto-study-filter.active {
  background: #337ab7;
  color: #fff;
  border-color: #2e6da4;
  box-shadow: 0 2px 8px rgba(51,122,183,0.22);
}
.banto-study-overview-table td {
  vertical-align: middle !important;
}
.banto-study-overview-table .btn {
  margin: 2px 2px 2px 0;
}
.banto-study-teaser {
  max-width: 520px;
  margin-top: 4px;
}
.banto-badge-info {
  background: #e7f1fb;
  color: #27679f;
  border: 1px solid #cae0f5;
}
@media (max-width: 767px) {
  .banto-study-filterbar {
    display: block;
  }
  .banto-study-filtergroup {
    margin-bottom: 10px;
  }
}

/* Booking overview filters (1.56) */
.banto-booking-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #e5f0fb;
}
.banto-booking-filter {
  border-radius: 999px !important;
  padding: 4px 10px;
}
.banto-booking-filter.active {
  background: #337ab7;
  color: #fff;
  border-color: #2e6da4;
  box-shadow: 0 2px 8px rgba(51,122,183,0.22);
}
.banto-dashboard-calendar-row .col-sm-12 {
  width: 100%;
}

.banto-calendar-scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.banto-calendar-scope-filter.active,
.banto-booking-filter.active {
  background: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}


/* Dashboard 1.62: compact direct action cards */
.banto-dashboard-actions{
  margin-bottom: 10px;
}
.banto-dashboard-actions .banto-role-card{
  min-height: 108px;
  padding: 14px 15px;
  gap: 12px;
  align-items: center;
}
.banto-dashboard-actions .banto-role-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
}
.banto-dashboard-actions .banto-role-body h3{
  margin-bottom: 4px;
  font-size: 16px;
}
.banto-dashboard-actions .banto-role-body p{
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.35;
}
.banto-dashboard-actions .banto-next-time{
  font-size: 13px;
  font-weight: 800;
}

/* Booking overview calendar view (1.75) */
.banto-booking-viewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.banto-booking-view-toggle.active {
  background: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}

.banto-booking-view-hint {
  display: inline-block;
  margin-top: 2px;
}

.banto-booking-calendar {
  margin-top: 4px;
}

.banto-booking-calendar .fc-event {
  cursor: pointer;
}

.banto-booking-calendar-own {
  border-color: #2e6da4 !important;
  background-color: #337ab7 !important;
}

.banto-booking-calendar-managed {
  border-color: #7a4fa3 !important;
  background-color: #8e63b0 !important;
}

@media (max-width: 767px) {
  .banto-booking-viewbar {
    display: block;
  }

  .banto-booking-view-hint {
    display: block;
    margin-top: 8px;
  }
}

/* External calendar visibility toggle (1.78) */
.banto-external-calendar-toggle{
  display: block;
  clear: both;
}
.banto-external-calendar-toggle input[type="checkbox"]{
  margin-right: 4px;
}
.banto-external-calendar-toggle a{
  white-space: nowrap;
}

/* Appointment / booking editor */
.banto-appointment-editor{
  max-width: 1180px;
  margin: 0 auto 24px auto;
}

.banto-appointment-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
}

.banto-appointment-hero{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px 0;
  padding: 16px 18px;
  background: var(--banto-surface);
  border: 1px solid var(--banto-border);
  border-radius: var(--banto-radius);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.banto-appointment-hero h3{
  margin: 2px 0 0 0;
  font-weight: 800;
  line-height: 1.25;
}

.banto-appointment-eyebrow{
  color: var(--banto-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.banto-appointment-summary{
  min-width: 280px;
  display: grid;
  gap: 7px;
  color: var(--banto-muted);
  font-size: 13px;
}

.banto-appointment-summary-line{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.banto-appointment-summary-line i{
  width: 18px;
  color: var(--banto-primary);
}

.banto-appointment-editor-invalid .banto-appointment-summary-line{
  color: #b45309;
}

.banto-editor-card.panel,
.banto-appointment-editor .panel-info,
.banto-appointment-editor .panel-default{
  border-radius: var(--banto-radius);
  border: 1px solid var(--banto-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.banto-editor-card .panel-heading h4,
.banto-appointment-editor .panel-heading h4{
  margin: 0;
  font-weight: 800;
  font-size: 16px;
}

.banto-time-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.banto-time-row{
  padding: 12px;
  border: 1px solid var(--banto-border);
  border-radius: 10px;
  background: #fff;
}

.banto-time-row-title{
  margin: 0 0 8px 0;
  color: var(--banto-muted);
  font-size: 13px;
  font-weight: 800;
}

.banto-time-inputs{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.banto-repeat-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.banto-repeat-grid .form-group,
.banto-repeat-grid .input-group{
  margin-bottom: 0;
}

.banto-appointment-side-card address{
  margin-bottom: 0;
}

.banto-equipment-selection .label{
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 6px 8px;
}

.banto-appointment-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: var(--banto-surface);
  border: 1px solid var(--banto-border);
  border-radius: var(--banto-radius);
  box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.03);
}

.banto-appointment-actions-left,
.banto-appointment-actions-right{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.banto-appointment-actions .btn i{
  margin-right: 4px;
}

@media (max-width: 991px){
  .banto-appointment-hero{
    display: block;
  }
  .banto-appointment-summary{
    margin-top: 12px;
    min-width: 0;
  }
  .banto-time-grid,
  .banto-repeat-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .banto-time-inputs{
    grid-template-columns: 1fr;
  }
  .banto-appointment-actions,
  .banto-appointment-actions-left,
  .banto-appointment-actions-right{
    display: block;
  }
  .banto-appointment-actions .btn{
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Research tag vocabulary suggestions (3.86) */
.banto-tag-suggestions{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.banto-tag-suggestion{
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.banto-tag-suggestion:hover,
.banto-tag-suggestion:focus{
  border-color: var(--banto-primary);
  color: var(--banto-primary);
  background: #eff6ff;
  outline: none;
}


.banto-public-login-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--banto-border);
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
}

.banto-public-login-link:hover,
.banto-public-login-link:focus{
  color: var(--banto-primary);
  text-decoration: none;
  border-color: #bfdbfe;
}

.banto-public-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 16px 0 30px;
  padding: 42px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  overflow: hidden;
}

.banto-public-hero-copy{
  max-width: 760px;
}

.banto-public-kicker{
  display: inline-block;
  margin-bottom: 8px;
  color: var(--banto-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.banto-public-hero h1{
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  color: #172033;
}

.banto-public-hero p{
  margin: 0;
  max-width: 690px;
  color: #526075;
  font-size: 18px;
  line-height: 1.6;
}

.banto-public-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.banto-public-hero-mark{
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  background: #fff;
  color: var(--banto-primary);
  font-size: 58px;
  box-shadow: 0 22px 55px rgba(37, 99, 235, .14);
  transform: rotate(4deg);
}

.banto-public-info{
  margin-bottom: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--banto-primary);
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
  color: #475569;
}

.banto-public-info p{
  margin: 0;
}

.banto-public-section{
  margin: 0 0 38px;
}

.banto-public-section-heading{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.banto-public-section-heading h2{
  margin: 0 0 5px;
  color: #172033;
  font-size: 25px;
}

.banto-public-section-heading p{
  margin: 0;
  color: #64748b;
}

.banto-public-directory-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.banto-public-directory-card{
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--banto-border);
  border-radius: 16px;
  background: #fff;
  color: #253047;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.banto-public-directory-card:hover,
.banto-public-directory-card:focus{
  color: #253047;
  text-decoration: none;
  border-color: #bfdbfe;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .10);
  transform: translateY(-2px);
}

.banto-public-directory-icon{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--banto-primary);
  font-size: 18px;
}

.banto-public-directory-card strong{
  margin-bottom: 7px;
  font-size: 16px;
}

.banto-public-directory-card > span:not(.banto-public-directory-icon){
  color: #64748b;
  line-height: 1.45;
}

.banto-public-directory-card small{
  margin-top: auto;
  padding-top: 14px;
  color: var(--banto-primary);
  font-weight: 700;
}

.banto-public-content-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.banto-public-content-card{
  min-height: 230px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--banto-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.banto-public-content-card-body{
  flex: 1 1 auto;
  padding: 20px;
}

.banto-public-content-card h3{
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.banto-public-content-card p{
  color: #64748b;
}

.banto-public-content-type{
  color: var(--banto-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.banto-public-content-card-footer{
  padding: 13px 20px;
  border-top: 1px solid #eef2f7;
  background: #fbfdff;
}

.banto-public-research-columns{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.banto-public-research-column{
  padding: 20px;
  border: 1px solid var(--banto-border);
  border-radius: 16px;
  background: #fff;
}

.banto-public-research-column-heading{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.banto-public-research-column-heading h3{
  margin: 0;
  font-size: 18px;
}

.banto-public-highlight-list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.banto-public-highlight-list li + li{
  border-top: 1px solid #eef2f7;
}

.banto-public-highlight-list a{
  display: block;
  padding: 12px 0;
  color: #253047;
}

.banto-public-highlight-list a:hover,
.banto-public-highlight-list a:focus{
  color: var(--banto-primary);
  text-decoration: none;
}

.banto-public-highlight-list strong,
.banto-public-highlight-list span{
  display: block;
}

.banto-public-highlight-list span{
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1199px){
  .banto-public-directory-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banto-public-content-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px){
  .banto-public-login-link{ padding: 8px 11px; }
  .banto-public-login-link i{ display: none; }
  .banto-public-hero{ padding: 28px 22px; }
  .banto-public-hero-mark{ display: none; }
  .banto-public-hero p{ font-size: 16px; }
  .banto-public-directory-grid,
  .banto-public-content-grid,
  .banto-public-research-columns{ grid-template-columns: 1fr; }
  .banto-public-section-heading{ align-items: flex-start; }
}

/* Public platform search and information architecture 4.08 */
.banto-public-skip-link:focus{
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
}

.banto-public-search-panel{
  margin: -18px 0 38px;
  padding: 24px;
  border: 1px solid var(--banto-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.07);
}

.banto-public-search-heading h2{
  margin: 0 0 5px;
  color: #172033;
  font-size: 23px;
}

.banto-public-search-heading p{
  margin: 0 0 18px;
  color: #64748b;
}

.banto-public-search-form{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, .45fr) auto;
  gap: 14px;
  align-items: end;
}

.banto-public-search-field label{
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.banto-public-search-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.banto-public-search-summary{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e9eef5;
  color: #475569;
}

.banto-public-directory-card.is-selected{
  border-color: var(--banto-primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.08), 0 14px 30px rgba(37,99,235,.10);
}

.banto-public-count{
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--banto-primary);
  font-size: 11px;
}

.banto-public-content-card.is-featured{
  border-color: #93c5fd;
  box-shadow: 0 14px 34px rgba(37,99,235,.10);
}

.banto-public-card-topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.banto-public-brand-badge{
  --banto-public-brand: var(--banto-primary);
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.banto-public-brand-badge img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.banto-public-brand-dot{
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--banto-public-brand);
}

.banto-public-card-facts{
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 12px;
}

.banto-public-card-facts li + li{
  margin-top: 7px;
}

.banto-public-card-facts i{
  width: 17px;
  color: var(--banto-primary);
}

.banto-public-content-separation{
  margin: -5px 0 16px;
  color: #64748b;
  font-size: 13px;
}

.banto-public-empty-state{
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.banto-public-empty-state i{
  margin-bottom: 10px;
  font-size: 30px;
}

.banto-public-empty-state p{
  margin: 0;
}

.banto-public-empty-inline{
  padding: 18px 0;
  color: #64748b;
}

.banto-public-inline-brand{
  color: var(--banto-primary) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.banto-public-visibility-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.banto-public-visibility-card{
  padding: 20px;
  border: 1px solid var(--banto-border);
  border-radius: 16px;
  background: #fff;
}

.banto-public-visibility-card.is-public{
  border-color: #86efac;
  background: #f0fdf4;
}

.banto-public-visibility-card > i{
  color: var(--banto-primary);
  font-size: 21px;
}

.banto-public-visibility-card h3{
  margin: 12px 0 7px;
  font-size: 16px;
}

.banto-public-visibility-card p{
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 991px){
  .banto-public-search-form{ grid-template-columns: 1fr 1fr; }
  .banto-public-search-actions{ grid-column: 1 / -1; }
  .banto-public-visibility-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px){
  .banto-public-search-panel{ padding: 20px 16px; }
  .banto-public-search-form{ grid-template-columns: 1fr; }
  .banto-public-search-actions{ grid-column: auto; flex-wrap: wrap; }
  .banto-public-search-actions .btn-primary{ width: 100%; }
  .banto-public-search-summary{ flex-direction: column; }
  .banto-public-visibility-grid{ grid-template-columns: 1fr; }
}

/* Contextual help and browser-local onboarding 4.09 */
.banto-context-help{
  margin: 0 0 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a5f;
}
.banto-context-help details{ padding: 0; }
.banto-context-help summary{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.banto-context-help summary::-webkit-details-marker{ display:none; }
.banto-context-help-summary{
  margin-left: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 400;
}
.banto-context-help-body{
  padding: 0 14px 14px 37px;
  color: #334155;
}
.banto-context-help-body p{ margin: 0 0 10px; }

.banto-help-page{ padding-bottom: 28px; }
.banto-help-hero{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
  padding: 22px;
  border: 1px solid var(--banto-border);
  border-radius: 16px;
  background: linear-gradient(135deg,#f8fbff,#eef6ff);
}
.banto-help-hero h1{ margin:0 0 7px; font-size:28px; color:#172033; }
.banto-help-hero p{ margin:0; color:#526174; }
.banto-help-search{ margin-bottom:20px; }
.banto-help-layout{
  display:grid;
  grid-template-columns:minmax(250px,.34fr) minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.banto-help-catalog,
.banto-help-detail,
.banto-onboarding{
  border:1px solid var(--banto-border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.banto-help-catalog{ padding:16px; }
.banto-help-catalog h2{ margin:0 0 12px; font-size:18px; }
.banto-help-catalog ul{ margin:0; padding:0; list-style:none; }
.banto-help-catalog li+li{ margin-top:5px; }
.banto-help-catalog a{
  display:flex;
  gap:10px;
  padding:10px;
  border-radius:9px;
  color:#334155;
  text-decoration:none;
}
.banto-help-catalog a:hover,
.banto-help-catalog a:focus,
.banto-help-catalog a.is-active{ background:#eff6ff; color:#1d4ed8; }
.banto-help-catalog a>i{ width:18px; margin-top:2px; text-align:center; }
.banto-help-catalog strong,.banto-help-catalog small{ display:block; }
.banto-help-catalog small{ margin-top:3px; color:#64748b; line-height:1.35; }
.banto-help-detail{ min-height:300px; padding:24px; }
.banto-help-detail h2{ margin:0 0 12px; color:#172033; }
.banto-help-detail .lead{ color:#475569; }
.banto-help-kicker{ margin:0 0 8px; color:#2563eb; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.banto-help-empty{
  display:flex;
  min-height:160px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:20px;
  color:#64748b;
  text-align:center;
}
.banto-help-empty i{ font-size:28px; }
.banto-onboarding{ margin-top:20px; padding:20px; }
.banto-onboarding-heading{ display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.banto-onboarding-heading h2{ margin:0 0 5px; }
.banto-onboarding-heading p{ margin:0 0 15px; color:#64748b; }
.banto-onboarding-list{ margin:0; padding:0; list-style:none; }
.banto-onboarding-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-top:1px solid #e8edf4;
}
.banto-onboarding-list label{ display:flex; align-items:flex-start; gap:9px; margin:0; font-weight:400; }
.banto-onboarding-list input{ margin-top:4px; }
.banto-onboarding-list strong,.banto-onboarding-list small{ display:block; }
.banto-onboarding-list small{ margin-top:3px; color:#64748b; }
.banto-onboarding-list li.is-complete strong{ text-decoration:line-through; color:#64748b; }

.banto-guided-empty{
  padding:20px;
  border:1px dashed #bfdbfe;
  border-radius:12px;
  background:#f8fbff;
  text-align:center;
}
.banto-guided-empty p{ margin:0 0 12px; color:#526174; }

@media(max-width:767px){
  .banto-context-help-summary{ display:none; }
  .banto-context-help-body{ padding-left:14px; }
  .banto-help-hero,.banto-onboarding-heading,.banto-onboarding-list li{ flex-direction:column; }
  .banto-help-layout{ grid-template-columns:1fr; }
  .banto-help-detail{ min-height:0; }
  .banto-onboarding-list li{ align-items:stretch; }
  .banto-onboarding-list .btn{ align-self:flex-start; }
}

/* Help and onboarding workflow hardening 4.30 */
.banto-onboarding-progress{
  margin: 4px 0 18px;
  padding: 12px 14px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #f8fbff;
}
.banto-onboarding-progress-copy{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#334155;
}
.banto-onboarding-progress-track{
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#dbe7f5;
}
.banto-onboarding-progress-track>span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#2563eb;
  transition:width .2s ease;
}
.banto-onboarding-group+.banto-onboarding-group{ margin-top:18px; }
.banto-onboarding-group h3{
  margin:0 0 4px;
  color:#334155;
  font-size:15px;
  font-weight:700;
}
.banto-guided-empty{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  margin:12px 0 18px;
  text-align:left;
}
.banto-guided-empty>i{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:18px;
}
.banto-guided-empty-copy h3{ margin:0 0 5px; color:#172033; font-size:18px; }
.banto-guided-empty-copy p{ margin:0; }
.banto-guided-empty-actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }

@media(max-width:767px){
  .banto-onboarding-progress-copy{ align-items:flex-start; }
  .banto-guided-empty{ grid-template-columns:auto minmax(0,1fr); align-items:start; }
  .banto-guided-empty-actions{ grid-column:1 / -1; justify-content:flex-start; width:100%; }
  .banto-guided-empty-actions .btn{ white-space:normal; text-align:left; }
}

/* Explicit organization context and workspace orientation (4.42). */
.banto-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.banto-brand-context {
  overflow: hidden;
  max-width: 210px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banto-organization-context-form,
.banto-organization-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--banto-border);
  border-radius: 999px;
  background: #fff;
  color: #334155;
}

.banto-organization-context-form select {
  width: auto;
  max-width: 240px;
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 700;
  outline: none;
}

.banto-organization-context-chip {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.banto-organization-context-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.banto-organization-context-notice > i {
  margin-top: 3px;
  font-size: 18px;
}

.banto-context-choice-page {
  max-width: 920px;
  margin: 18px auto 40px;
}

.banto-context-choice-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--banto-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.banto-context-choice-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--banto-primary);
  font-size: 24px;
}

.banto-context-choice-content {
  flex: 1 1 auto;
  min-width: 0;
}

.banto-context-choice-content h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.banto-context-choice-eyebrow {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.banto-context-choice-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.banto-context-choice-form {
  margin: 0;
}

.banto-context-choice-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--banto-border);
  border-radius: 13px;
  background: #fff;
  color: #1f2937;
  text-align: left;
}

.banto-context-choice-button:hover,
.banto-context-choice-button:focus {
  border-color: var(--banto-primary);
  background: #f8fbff;
  outline: 0;
}

.banto-context-choice-name {
  font-size: 16px;
  font-weight: 800;
}

.banto-context-choice-name i {
  width: 22px;
  color: var(--banto-primary);
}

.banto-context-choice-action {
  color: var(--banto-primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .banto-organization-context-form select {
    max-width: 170px;
  }
}

@media (max-width: 991px) {
  .banto-topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .banto-organization-context-form,
  .banto-organization-context-chip {
    order: -1;
  }
}

@media (max-width: 640px) {
  .banto-brand-context {
    max-width: 135px;
  }

  .banto-organization-context-form {
    width: 100%;
    border-radius: 12px;
  }

  .banto-organization-context-form select {
    width: 100%;
    max-width: none;
  }

  .banto-context-choice-card {
    padding: 20px;
    flex-direction: column;
  }

  .banto-context-choice-button {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Structured module guides (4.44). */
.banto-help-guide-section{ margin-top:28px; }
.banto-help-guide-section>h3{ margin:0 0 14px; color:#172033; font-size:20px; }
.banto-help-guide-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.banto-help-guide-card{ display:flex; gap:12px; padding:15px; border:1px solid #dfe7f1; border-radius:11px; background:#f8fbff; }
.banto-help-guide-card>i{ width:24px; flex:0 0 24px; margin-top:2px; color:#2563eb; text-align:center; }
.banto-help-guide-card h4{ margin:0 0 6px; color:#172033; font-size:16px; }
.banto-help-guide-card p{ margin:0; color:#475569; }
.banto-help-scenario-list{ display:grid; gap:12px; }
.banto-help-scenario{ display:flex; gap:14px; padding:16px; border:1px solid #dfe7f1; border-radius:12px; background:#fff; }
.banto-help-scenario-icon{ display:flex; width:42px; height:42px; flex:0 0 42px; align-items:center; justify-content:center; border-radius:10px; background:#eff6ff; color:#1d4ed8; }
.banto-help-scenario-copy{ min-width:0; flex:1 1 auto; }
.banto-help-scenario-heading{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.banto-help-scenario-heading h4{ margin:0 0 7px; color:#172033; font-size:17px; }
.banto-help-scenario-heading span{ flex:0 0 auto; padding:3px 8px; border-radius:999px; background:#eef2f7; color:#475569; font-size:12px; font-weight:700; }
.banto-help-scenario p{ margin:0 0 8px; color:#475569; }
.banto-help-scenario .banto-help-scenario-steps{ margin-bottom:0; color:#334155; }
@media(max-width:767px){
  .banto-help-guide-grid{ grid-template-columns:1fr; }
  .banto-help-scenario{ align-items:flex-start; }
  .banto-help-scenario-heading{ flex-direction:column; }
  .banto-help-scenario-heading span{ align-self:flex-start; }
}

/* 4.66 contextual navigation */
.banto-brand-link-split{display:flex;align-items:center;gap:10px;min-width:0}
.banto-brand-home{display:inline-flex;align-items:center;gap:10px;color:#111827;min-width:0}
.banto-brand-home:hover,.banto-brand-home:focus{color:#111827;text-decoration:none}
.banto-brand-context{display:block;max-width:210px;color:#64748b;font-size:12px;font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.banto-brand-context:hover,.banto-brand-context:focus{color:var(--banto-primary);text-decoration:none}
.banto-side-context-title{display:flex;align-items:center;gap:10px;margin:14px 4px 8px;padding:10px 8px;border-top:1px solid #eef2f7;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.banto-context-back{margin-bottom:8px;background:#f8fafc}
.banto-context-breadcrumb{margin:0 0 16px;padding:10px 14px;border:1px solid var(--banto-border);border-radius:12px;background:#fff;overflow-x:auto}
.banto-context-breadcrumb ol{display:flex;align-items:center;gap:8px;margin:0;padding:0;list-style:none;white-space:nowrap}
.banto-context-breadcrumb li{display:flex;align-items:center;color:#64748b;font-size:13px}
.banto-context-breadcrumb li:not(:last-child)::after{content:'›';margin-left:8px;color:#94a3b8}
.banto-context-breadcrumb a{color:#2563eb}
.banto-context-breadcrumb li[aria-current="page"] span{color:#111827;font-weight:700}
@media(max-width:540px){.banto-brand-link-split{gap:6px}.banto-brand-home .banto-brand-word{display:none}.banto-brand-context{max-width:135px;font-size:11px}.banto-context-breadcrumb{margin-top:4px}}

/* Banto Booking 4.66: appointment recurrence editor */
.banto-series-editor {
  margin-top: 0.5rem;
}
.banto-series-fields {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #f8fafc;
}
.banto-series-fields[hidden],
.banto-series-conditional[hidden] {
  display: none !important;
}
.banto-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #e9f2ff;
  color: #174ea6;
  font-weight: 700;
}
.banto-series-scope {
  padding: 0.85rem;
  border-left: 4px solid #2f6fed;
  background: #f3f7ff;
  border-radius: 8px;
}
.banto-weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}
.banto-weekday-options .checkbox-inline {
  margin-left: 0;
  min-width: 3rem;
}
.banto-series-frequency-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .banto-series-fields {
    padding: 0.85rem;
  }
  .banto-weekday-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .banto-weekday-options .checkbox-inline {
    padding-left: 20px;
  }
}

.banto-workspace-current-section {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-weight: 700;
}

/* Calendar interaction and loading feedback (4.68) */
.banto-calendar-create-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:10px 0 12px;
}
.banto-calendar-create-button{
  font-weight:700;
}
.banto-calendar-create-hint{
  line-height:1.4;
}
.banto-calendar-shell{
  position:relative;
  min-height:120px;
}
.banto-calendar-loading{
  position:absolute;
  top:10px;
  right:10px;
  z-index:30;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid var(--banto-border);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 14px rgba(15,23,42,.12);
  font-weight:600;
}
.banto-calendar-spinner{
  width:16px;
  height:16px;
  border:2px solid rgba(51,122,183,.25);
  border-top-color:#337ab7;
  border-radius:50%;
  animation:banto-calendar-spin .8s linear infinite;
}
@keyframes banto-calendar-spin{
  to{ transform:rotate(360deg); }
}
.banto-calendar-load-error{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
@media (prefers-reduced-motion: reduce){
  .banto-calendar-spinner{ animation:none; }
}
@media (max-width:767px){
  .banto-calendar-create-bar{
    display:block;
  }
  .banto-calendar-create-button{
    width:100%;
    min-height:44px;
  }
  .banto-calendar-create-hint{
    display:block;
    margin-top:8px;
  }
  .banto-calendar-loading{
    position:relative;
    top:auto;
    right:auto;
    margin-bottom:8px;
    border-radius:12px;
    box-shadow:none;
  }
  .banto-calendar-load-error{
    display:block;
  }
  .banto-calendar-load-error .btn{
    margin-top:8px;
  }
}

/* Contextual in-page section navigation (4.78). */
.banto-side-page-sections{margin:0 0 10px 34px;padding:7px 0 8px 12px;border-left:2px solid #dbe7ff;display:grid;gap:2px}
.banto-side-page-sections-title{padding:4px 8px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.banto-side-page-section-link{display:block;padding:6px 8px;border-radius:6px;color:#526174;font-size:13px;line-height:1.25;text-decoration:none;overflow-wrap:anywhere}
.banto-side-page-section-link:hover,.banto-side-page-section-link:focus,.banto-side-page-section-link.is-active{background:#edf4ff;color:#174ea6;text-decoration:none}
.banto-context-section-target{scroll-margin-top:96px}

/* 4.79: keep the workspace navigation visible and expand page context locally. */
.banto-side-context-inline{
  margin: 5px 0 8px 12px;
  padding-left: 10px;
  border-left: 2px solid #dbeafe;
}
.banto-side-context-inline .banto-side-context-child{
  min-height: 34px;
  margin: 2px 0;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.banto-side-context-inline .banto-side-context-child i{
  width: 15px;
  font-size: 12px;
}

/* 5.03: request-correlated admin async diagnostics. Technical details are
   emitted server-side only for platform administrators in development mode. */
.banto-async-error .banto-async-request-id{margin-top:6px;opacity:.85}
.banto-dev-diagnostic{margin-top:10px;padding-top:8px;border-top:1px solid rgba(127,29,29,.2)}
.banto-dev-diagnostic summary{cursor:pointer;font-weight:700}
.banto-dev-diagnostic pre{margin:8px 0 0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#fff;padding:10px;border-radius:8px}
.banto-lazy-retry-row{margin-top:8px}

/* 5.72 central ActionRequired projection: navigation consumes counts from
 * AttentionService; modules must not implement competing badge CSS/logic. */
.banto-attention-dot{
  display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:auto;
  border-radius:999px;background:#c62828;color:#fff;font-size:11px;font-weight:700;line-height:1;flex:0 0 auto;
}
.banto-attention-dot--heading{margin-left:8px;margin-right:auto;}
.banto-attention-list{margin-bottom:20px;}
.banto-attention-list .list-group-item{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;}
.banto-attention-list .banto-attention-copy{min-width:0;}

/* 6.35 public organization hub/discovery */
.banto-public-organization-grid .banto-public-directory-icon img,.banto-organization-hub-hero .banto-public-hero-mark img{max-width:100%;max-height:72px;object-fit:contain}.banto-content-public-link .btn-link{padding:0;vertical-align:baseline}
