/* Day + time always share one row so session forms stay short on phones */
.bd-daytime-pair{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--bd-space-3, 10px) var(--bd-space-3, 12px);
  grid-column: 1 / -1;
  min-width: 0;
}
.bd-daytime-pair > .bd-field{
  min-width: 0;
}

/* Mobile row edit drawer — shared across themes */
@media (max-width: 767.98px){
  .bd-row-drawer{
    display: block;
    width: 100%;
    margin: 10px 0 14px;
  }

  /* Inside the day agenda list, sit tightly under the selected session */
  .cal-agenda-list > .bd-row-drawer{
    margin: 4px 0 12px;
  }

  .bd-row-drawer-shell{
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 14px;
    background: var(--bd-surface, #141414);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    overflow: hidden;
  }

  .bd-row-drawer-bar{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(127,127,127,.22);
  }
  .bd-row-drawer-title{
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 14px;
  }
  .bd-row-drawer-body{ padding: 12px; }
  .bd-row-drawer-body .card,
  .bd-row-drawer-body .panel-box{
    border: 0;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
  }
  .bd-row-drawer-body .card-header,
  .bd-row-drawer-body .panel-title{ display: none; }

  /* Bottom form slot stays on the page; hint while editor is in the drawer */
  [data-bd-editor-home].is-editor-away{
    min-height: 56px;
    position: relative;
  }
  [data-bd-editor-home].is-editor-away::before{
    content: attr(data-away-hint);
    display: block;
    padding: 14px 16px;
    border: 1px dashed rgba(127,127,127,.35);
    border-radius: 12px;
    color: var(--bd-muted, #8a8a8a);
    font-size: 13px;
    background: rgba(127,127,127,.06);
  }
}

@media (min-width: 768px){
  .bd-row-drawer{ display: none !important; }
}
