:root{
  display:block;
  width:100%;
  height:100%;

  --label-w: 112px;
  --row-h: 24px;
  --slots: 96;
  --hours: 24;
  --slot-w: 32px;

  --border: var(--bm-border, #D8D2C4);
  --border-strong: color-mix(in srgb, var(--bm-sage, #7D877E) 48%, var(--bm-border, #D8D2C4));
  --bg: var(--bm-linen, #F7F3EA);
  --shade: rgba(125, 135, 126, .14);
  --text: var(--bm-ink, #1F2A24);
  --muted: var(--bm-muted, #6F766F);
  --header-h: 44px;
}

.timetable{
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-bottom: 58px;
}

.timeline-summary{
  color: var(--text);
  font-weight: 600;
}

.timeline-toolbar{
  margin-bottom: .5rem;
}

.timeline-list-filters{
  position:relative;
  z-index:100;
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
  margin-bottom:.75rem;
  padding:.7rem .85rem;
  border:1px solid var(--bm-border, #D8D2C4);
  border-radius:16px;
  background:linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
}

.timeline-list-filter-dropdown{
  position:relative;
  z-index:110;
}

.timeline-list-filter-dropdown__toggle,
.timeline-list-filters__clear{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:2.15rem;
  padding:.35rem .7rem;
  border:1px solid var(--bm-border, #D8D2C4);
  border-radius:.55rem;
  background:#fffaf1;
  color:var(--bm-ink, #1F2A24);
  font:inherit;
  font-size:.86rem;
  font-weight:700;
}

.timeline-list-filter-dropdown__toggle:hover,
.timeline-list-filters__clear:hover{
  border-color:var(--bm-sage, #7D877E);
  background:var(--bm-linen, #F7F3EA);
}

.timeline-list-filter-dropdown__toggle i{
  font-size:.72rem;
}

.timeline-list-filter-dropdown__menu{
  position:absolute;
  z-index:200;
  top:calc(100% + .35rem);
  left:0;
  display:grid;
  gap:.35rem;
  min-width:13rem;
  max-height:18rem;
  overflow:auto;
  padding:.5rem;
  border:1px solid var(--bm-border, #D8D2C4);
  border-radius:.7rem;
  background:#fffdf8;
  box-shadow:0 12px 28px rgba(31,42,36,.16);
}

.timeline-list-filter-dropdown__empty{
  padding:.4rem;
  color:var(--bm-muted, #6F766F);
  font-size:.82rem;
}

.timeline-list-filters__active{
  display:flex;
  flex:1 1 12rem;
  align-items:center;
  gap:.35rem;
  overflow:hidden;
}

.timeline-list-filters__active button{
  overflow:hidden;
  max-width:14rem;
  padding:.22rem .48rem;
  border:0;
  border-radius:999px;
  background:rgba(47,61,52,.1);
  color:var(--bm-green, #2F3D34);
  cursor:pointer;
  font:inherit;
  font-size:.74rem;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.timeline-list-filters__active button:hover{
  background:rgba(47,61,52,.18);
}

.timeline-list-filters__clear{
  margin-left:auto;
  color:var(--bm-wine, #8D4A43);
}

.timeline-list-filters__label{
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--bm-muted, #6F766F);
  margin-right:.15rem;
}

.timeline-list-filters__option{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin:0;
  padding:.35rem .7rem;
  border:1px solid var(--bm-border, #D8D2C4);
  border-radius:999px;
  background:#fffaf1;
  color:var(--bm-ink, #1F2A24);
  font-size:.88rem;
  font-weight:600;
  cursor:pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.timeline-list-filters__option:hover{
  border-color: var(--bm-sage, #7D877E);
  background: var(--bm-linen, #F7F3EA);
}

.timeline-list-filters__option:has(input:checked){
  border-color: color-mix(in srgb, var(--bm-green, #2F3D34) 68%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
}

.timeline-list-filters__option input{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  place-content:center;
  width:1rem;
  height:1rem;
  margin:0;
  border:1.5px solid var(--bm-sage, #7D877E);
  border-radius:.28rem;
  background:#fffaf1;
  color:var(--bm-green, #2F3D34);
  cursor:pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.timeline-list-filters__option input::before{
  content:"";
  width:.34rem;
  height:.58rem;
  border:solid var(--bm-linen, #F7F3EA);
  border-width:0 2px 2px 0;
  transform:rotate(45deg) scale(0);
  transform-origin:center;
  transition:transform .12s ease;
}

.timeline-list-filters__option input:checked{
  border-color:var(--bm-green, #2F3D34);
  background:var(--bm-green, #2F3D34);
}

.timeline-list-filters__option input:checked::before{
  transform:rotate(45deg) scale(1);
}

.timeline-list-filters__option input:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(47,61,52,.16);
}

.app-header--timeline .app-header__right{
  flex-wrap: nowrap;
}

.app-header--timeline .app-header__main{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.app-header--timeline .app-header__left,
.app-header--timeline .app-header__title{
  min-width: 0;
}

.app-header-more--timeline .app-header-more__section--tools{
  gap: .55rem;
}

.app-header-more--timeline .timeline-header-tools{
  gap: .55rem;
}

.app-header-more--timeline .timeline-header-tools__row{
  justify-content: space-between;
  gap: .55rem;
}

.app-header-more--timeline .timeline-header-tools__actions{
  justify-content: flex-end;
  gap: .55rem;
}

.app-header-more--timeline .timeline-search-shell{
  padding: .55rem;
  border-radius: .75rem;
  box-shadow: none;
}

.app-header-more--timeline .timeline-search-inputwrap{
  flex-basis: 100%;
  min-width: 0;
}

.timeline-topbar-nav{
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.timeline-header-tools{
  display: grid;
  gap: .65rem;
  width: 100%;
  min-width: 0;
}

.timeline-header-icons{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .42rem;
  min-width: 0;
}

.timeline-header-icons .app-header-icon{
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: .75rem;
}

.timeline-header-icons .app-header-icon.is-active{
  background: var(--bm-green, #2F3D34);
  border-color: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
}

.timeline-header-icon-link{
  position: relative;
}

.timeline-header-icon-badge{
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 .28rem;
  border-radius: 999px;
  background: var(--bm-wine, #8D4A43);
  color: var(--bm-linen, #F7F3EA);
  border: 2px solid var(--bm-linen, #F7F3EA);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
}

.timeline-header-view-toggle{
  flex: 0 0 auto;
}

.timeline-header-view-toggle .btn{
  width: 34px;
  padding-inline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-header-tools__row{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.timeline-header-tools__search-toggle{
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
}

.timeline-header-tools__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.timeline-mode-switch{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 38px;
  padding: .35rem .55rem .35rem .8rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
  box-shadow: 0 10px 24px rgba(31,42,36,.06);
  cursor: pointer;
  user-select: none;
}

.timeline-mode-switch--header{
  min-height: 36px;
  height: 36px;
  padding: 0 .45rem;
  border-radius: .75rem;
  box-shadow: none;
  flex: 0 0 auto;
}

.timeline-mode-switch__copy{
  display: grid;
  gap: .05rem;
  line-height: 1.05;
}

.timeline-mode-switch__label{
  font-size: .78rem;
  font-weight: 700;
  color: var(--bm-ink, #1F2A24);
}

.timeline-mode-switch__status{
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bm-muted, #6F766F);
}

.timeline-mode-switch__control{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.timeline-mode-switch__input{
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.timeline-mode-switch__track{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 42%, var(--bm-border, #D8D2C4));
  transition: background .18s ease;
}

.timeline-mode-switch__thumb{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,42,36,.18);
  transition: transform .18s ease;
}

.timeline-mode-switch__input:checked + .timeline-mode-switch__track{
  background: var(--bm-green, #2F3D34);
}

.timeline-mode-switch__input:checked + .timeline-mode-switch__track .timeline-mode-switch__thumb{
  transform: translateX(20px);
}

.timeline-mode-switch:focus-within{
  border-color: var(--bm-sage, #7D877E);
  box-shadow: 0 0 0 3px rgba(47,61,52,.14);
}

.timeline-search-shell{
  position: relative;
  display: grid;
  gap: .6rem;
  padding: .75rem;
  border: 1px solid #dbe3ef;
  border-radius: .95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.timeline-search-form{
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.timeline-search-inputwrap{
  position: relative;
  flex: 1 1 420px;
  min-width: 220px;
}

.timeline-search-inputicon{
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.timeline-search-input{
  width: 100%;
  height: 38px;
  padding: 0 .9rem 0 2.35rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background: #fff;
  color: #0f172a;
}

.timeline-search-input:focus{
  outline: 0;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.18);
}

@media (min-width: 992px) {
  .app-header--timeline{
    padding-block: .65rem;
  }

  .page-card--timeline{
    padding-top: 1rem !important;
  }

  .app-header--timeline .app-header__title{
    flex-wrap: nowrap;
  }

  .timeline-topbar-nav .btn{
    white-space: nowrap;
  }

  .timeline-header-tools__actions .btn-group{
    flex-wrap: nowrap;
  }

  .app-header-more--timeline .timeline-search-shell{
    width: 100%;
  }
}

.timeline-search-actions{
  display: flex;
  align-items: center;
  gap: .5rem;
}

.timeline-search-meta{
  font-size: .82rem;
  color: #475569;
}

.timeline-search-results{
  display: grid;
  gap: .45rem;
}

.timeline-search-result{
  display: grid;
  gap: .16rem;
  padding: .65rem .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
  text-decoration: none;
  background: #fff;
  color: inherit;
}

.timeline-search-result:hover{
  border-color: #cbd5e1;
  background: #f8fafc;
}

.timeline-search-result__title{
  font-size: .92rem;
  font-weight: 700;
  color: #0f172a;
}

.timeline-search-result__meta,
.timeline-search-empty{
  font-size: .78rem;
  color: #64748b;
}

.timeline-search-suggestion-action{
  background: #f8fafc;
}

.timeline-search-suggestion-action .timeline-guest-suggestion__title{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.timeline-search-status{
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  padding: .08rem .38rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .01em;
  vertical-align: middle;
}

.timeline-search-status--confirmed{
  background: #dcfce7;
  color: #166534;
}

.timeline-search-status--seated{
  background: #dbeafe;
  color: #1d4ed8;
}

.timeline-search-status--completed{
  background: #e5e7eb;
  color: #374151;
}

.timeline-search-status--cancelled,
.timeline-search-status--noshow{
  background: #fee2e2;
  color: #b91c1c;
}

.timeline-service-shell{
  display: block;
  position: relative;
}

.timeline-service-main{
  min-width: 0;
}

.timeline-service-notice{
  display: none;
}

.timeline-service-shell.is-service-mode{
  display: block;
}

.timeline-service-shell.is-service-mode .timeline-service-notice{
  display: block;
  position: fixed;
  top: 80px;
  bottom: 56px;
  right: 12px;
  width: 240px;
  z-index: 1240;
}

.timeline-service-shell.is-service-mode .timeline-service-main{
  padding-right: 252px;
}


body.timeline-service-mode .app-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  margin: 0;
  padding: .75rem 2rem;
  background: rgba(247,243,234,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216, 210, 196, .92);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

body.timeline-service-mode .app-header::before{
  display: none;
}

body.timeline-service-mode .content{
  padding-top: 72px;
}

body.timeline-service-mode .page-card{
  margin-top: 0;
  padding-top: 0 !important;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.timeline-service-mode .page-card--timeline{
  margin-inline: .75rem !important;
  padding-inline: .75rem !important;
}

.timeline-service-notice__card{
  position: relative;
  height: 100%;
  width: 100%;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
  box-shadow: 0 16px 36px rgba(31, 42, 36, .08);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: .65rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.timeline-service-notice__label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bm-muted, #6F766F);
}

.timeline-service-notice__empty{
  min-height: 220px;
  border: 1px dashed var(--bm-sage, #7D877E);
  border-radius: .85rem;
  background: rgba(255,250,241,.86);
  color: var(--bm-muted, #6F766F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 600;
}

.timeline-service-notice__list{
  display: grid;
  gap: .65rem;
  align-content: start;
}

.timeline-service-notice__item{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .85rem;
  background: rgba(255,250,241,.96);
  padding: .8rem .85rem;
  display: grid;
  gap: .25rem;
}

.timeline-service-notice__item-title{
  font-size: .86rem;
  font-weight: 800;
  color: var(--bm-ink, #1F2A24);
}

.timeline-service-notice__badge{
  display: inline-block;
  margin-right: .45rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--bm-linen, #F7F3EA);
  background: var(--bm-wine, #8D4A43);
}

.timeline-service-notice__item-meta{
  font-size: .76rem;
  color: var(--bm-muted, #6F766F);
  font-weight: 700;
  letter-spacing: .02em;
}

.timeline-service-notice__item-body{
  font-size: .92rem;
  color: var(--bm-ink, #1F2A24);
}

.timeline-list{
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: visible;
  margin-bottom: 58px;
}

body.timeline-service-mode .app-header__sidebar-toggle,
body.timeline-service-mode .app-header__mobile-menu,
body.timeline-service-mode #mobileSidebar{
  display: none !important;
}

body.timeline-service-mode #sidebar{
  display: flex !important;
  width: 80px;
  min-width: 80px;
  flex: 0 0 80px;
}

body.timeline-service-mode #sidebar .nav-text,
body.timeline-service-mode #sidebar .section-label,
body.timeline-service-mode #sidebar .sidebar-location__name,
body.timeline-service-mode #sidebar .brand-title--full,
body.timeline-service-mode #sidebar .brand-subtitle{
  display: none !important;
}

body.timeline-service-mode #sidebar .sidebar-brand{
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

body.timeline-service-mode #sidebar .brand-text{
  display: block;
  text-align: center;
}

body.timeline-service-mode #sidebar .sidebar-location{
  display: flex;
  justify-content: center;
}

body.timeline-service-mode #sidebar .sidebar-location__toggle{
  width: 42px;
  min-width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
}

body.timeline-service-mode #sidebar .sidebar-location__toggle::after{
  display: none;
}

body.timeline-service-mode #sidebar .sidebar-location__menu{
  margin-left: .45rem !important;
}

body.timeline-service-mode #sidebar .nav-link{
  width: 100%;
  justify-content: center;
  min-height: 42px;
  padding-inline: 0;
}

body.timeline-service-mode #sidebar .nav-link i{
  margin: 0;
  text-align: center;
  width: 1.25rem;
}

body.timeline-service-mode #appShell{
  display: flex !important;
}

body.timeline-service-mode #appShell > .flex-grow-1{
  width: 100%;
  min-width: 0;
}

body.timeline-service-mode #timelineRoot,
body.timeline-service-mode #timelineListView,
body.timeline-service-mode .timeline-sticky-footer,
body.timeline-service-mode .timeline-toolbar,
body.timeline-service-mode .app-header{
  transition: filter .2s ease, opacity .2s ease;
}

body.timeline-privacy-active #timelineRoot,
body.timeline-privacy-active #timelineListView,
body.timeline-privacy-active .timeline-sticky-footer,
body.timeline-privacy-active .timeline-toolbar,
body.timeline-privacy-active .app-header,
body.timeline-privacy-active .timeline-service-notice{
  filter: blur(14px);
}

.timeline-privacy-overlay{
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(255,255,255,.18);
  backdrop-filter: saturate(120%) blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.timeline-privacy-overlay__panel{
  min-width: min(360px, calc(100vw - 2rem));
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .18);
  padding: 1rem 1.1rem;
  display: grid;
  gap: .8rem;
  justify-items: center;
}

.timeline-privacy-overlay__title{
  font-size: .88rem;
  font-weight: 800;
  color: #0f172a;
}

.timeline-list-row{
  display: grid;
  grid-template-columns: 92px 1fr;
  border-top: 1px solid var(--border);
}

.timeline-list-row:first-child{
  border-top: 0;
}

.timeline-list-slot{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem .45rem;
  font-weight: 700;
  color: var(--muted);
  background: #f8fafc;
  border-right: 1px solid var(--border);
}

.timeline-list-items{
  padding: .45rem;
  display: grid;
  gap: .4rem;
}

.timeline-list-item{
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 148px;
  gap: .75rem;
  align-items: start;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fff;
  padding: .6rem .65rem;
  font-size: .88rem;
  cursor: pointer;
}

.timeline-list-item.is-status-open{
  z-index: 2200;
}

.timeline-list-item--blockade{
  background:
    repeating-linear-gradient(
      -45deg,
      #f3f4f6 0,
      #f3f4f6 8px,
      #e5e7eb 8px,
      #e5e7eb 16px
    );
  border-color: #d1d5db;
}

.timeline-list-item__main{
  min-width: 0;
  display: grid;
  gap: .38rem;
}

.timeline-list-item__top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .5rem;
}

.timeline-list-item__name{
  min-width: 0;
  color: #0f172a;
}

.timeline-list-item__lock{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-green, #2F3D34);
  font-size: .82rem;
}

.timeline-list-item__covers{
  color: #475569;
  font-weight: 700;
  font-size: .78rem;
}

.timeline-list-chip{
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 1.65rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: .73rem;
}

.timeline-list-chip--time{
  border-color: #d1d5db;
  background: #f8fafc;
  color: #334155;
}

.timeline-list-chip--service{
  border-color: color-mix(in srgb, var(--service-chip, #5E6673) 65%, #fff);
  background: var(--service-chip, #5E6673);
  color: #fff;
}

.timeline-list-item__note{
  display: flex;
  align-items: flex-start;
  gap: .42rem;
  color: #334155;
  font-size: .8rem;
  line-height: 1.35;
}

.timeline-list-item__note i{
  margin-top: .1rem;
  color: #64748b;
}

.timeline-list-item__note--dietary{
  color: #92400e;
}

.timeline-list-item__note--dietary i{
  color: #d97706;
}

.timeline-list-item__actions{
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.timeline-list-item__table-col{
  display: grid;
  gap: .18rem;
  justify-items: start;
  align-content: start;
  padding-top: .06rem;
}

.timeline-list-item__table-label{
  color: #94a3b8;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-list-item__table-value{
  color: #0f172a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-list-status{
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.timeline-list-status__toggle{
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: .32rem .8rem;
  font-size: .76rem;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

.timeline-list-status__toggle.is-confirmed{
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.timeline-list-status__toggle.is-pending,
.timeline-list-status__toggle.is-option{
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.timeline-list-status__toggle.is-seated{
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.timeline-list-status__toggle.is-completed,
.timeline-list-status__toggle.is-cancelled,
.timeline-list-status__toggle.is-no-show{
  border-color: #d1d5db;
  background: #f8fafc;
  color: #475569;
}

.timeline-list-status__menu{
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  z-index: 5000;
  min-width: 220px;
  display: grid;
  gap: .2rem;
  padding: .35rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

@media (max-width: 860px){
  .timeline-list-item{
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .timeline-list-item__table-col{
    justify-self: end;
  }

  .timeline-list-item__actions{
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .timeline-list-status__menu{
    left: 0;
    right: auto;
    min-width: min(220px, calc(100vw - 48px));
  }
}

.timeline-list-status__action{
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  border-radius: .55rem;
  padding: .5rem .65rem;
  font-size: .82rem;
  font-weight: 600;
}

@media (max-width: 991.98px){
  .timeline-list-status__toggle,
  .timeline-list-status__action,
  .timeline-composer-tab,
  .timeline-day-memo,
  .timeline-day-status{
    min-height: 44px;
  }

  .timeline-day-status{
    padding-inline: .55rem;
  }
}

.timeline-list-status__action:hover:not(:disabled){
  background: #f8fafc;
}

.timeline-list-status__action:disabled{
  color: #94a3b8;
  cursor: not-allowed;
}

.timeline-list-empty{
  padding: 1rem;
  color: var(--muted);
}

.timeline-hovercard{
  position: fixed;
  z-index: 2140;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 1rem;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .18);
  backdrop-filter: blur(10px);
  padding: .85rem;
  display: grid;
  gap: .65rem;
}

.timeline-hovercard.is-pinned{
  box-shadow: 0 26px 64px rgba(15, 23, 42, .24);
}

.timeline-hovercard[hidden]{
  display: none !important;
}

.timeline-hovercard__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
}

.timeline-hovercard__title{
  color: #0f172a;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.25;
}

.timeline-hovercard__meta{
  margin-top: .12rem;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}

.timeline-hovercard__status-chip{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #475569;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.timeline-hovercard__status-chip.is-confirmed{
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.timeline-hovercard__status-chip.is-pending,
.timeline-hovercard__status-chip.is-option{
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.timeline-hovercard__status-chip.is-seated{
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.timeline-hovercard__status-chip.is-completed{
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.timeline-hovercard__status-chip.is-no-show,
.timeline-hovercard__status-chip.is-cancelled{
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.timeline-hovercard-status-menu{
  position: relative;
}

.timeline-hovercard-status-menu__list{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 3;
  min-width: 150px;
  padding: .3rem;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.timeline-hovercard-status-menu__item{
  width: 100%;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: #334155;
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
  padding: .42rem .55rem;
}

.timeline-hovercard-status-menu__item:hover,
.timeline-hovercard-status-menu__item.is-active{
  background: #f1f5f9;
}

.timeline-hovercard__details{
  display: grid;
  gap: .45rem;
}

.timeline-hovercard__agreements{
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f8fafc;
  padding: .55rem;
  display: grid;
  gap: .4rem;
}

.timeline-hovercard__agreements-title{
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-hovercard__agreements-list{
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}

.timeline-hovercard__agreement{
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: .18rem .48rem;
  font-size: .72rem;
  font-weight: 700;
}

.timeline-hovercard__agreement.is-inactive{
  opacity: .55;
}

.timeline-hovercard__detail{
  display: grid;
  gap: .12rem;
  padding: .38rem .42rem;
  border-radius: .75rem;
  background: #f8fafc;
}

.timeline-hovercard__label{
  color: #94a3b8;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.timeline-hovercard__label-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.timeline-hovercard__value{
  color: #334155;
  font-size: .8rem;
  line-height: 1.4;
}

.timeline-hovercard__value.is-empty{
  color: #94a3b8;
  font-style: italic;
}

.timeline-hovercard__editor{
  display: grid;
  gap: .42rem;
}

.timeline-hovercard__detail.is-editable{
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.timeline-hovercard__detail.is-editable:hover{
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .22);
}

.timeline-hovercard__textarea{
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background: #fff;
  padding: .55rem .65rem;
  color: #0f172a;
  font-size: .8rem;
  line-height: 1.45;
}

.timeline-hovercard__editor-actions{
  display: flex;
  justify-content: flex-end;
  gap: .38rem;
}

.timeline-hovercard__save-status{
  color: #64748b;
  font-size: .72rem;
  line-height: 1.35;
}

.timeline-hovercard__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.timeline-hovercard__open-btn,
.timeline-hovercard__check-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding-inline: .6rem;
}

.timeline-hovercard__check-btn{
  margin-right: auto;
}

.tt-scroll{
  width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

.tt-scroll.is-time-header-stuck{
  padding-top: var(--header-h);
}

.timeline-now-indicator{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
  min-width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
  display: grid;
  grid-template-columns: var(--label-w) repeat(var(--slots), var(--slot-w));
  pointer-events: none;
  z-index: 24;
}

.timeline-now-indicator__slot{
  position: relative;
}

.timeline-now-indicator__line{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--now-offset, 0%);
  width: 4px;
  transform: translateX(-1px);
  background: var(--bm-wine, #8D4A43);
  box-shadow: 0 0 0 1px rgba(141,74,67,.14);
}

.timeline-now-indicator__label{
  position: absolute;
  top: 4px;
  left: var(--now-offset, 0%);
  transform: translateX(-50%);
  background: rgba(141,74,67,.94);
  color: var(--bm-linen, #F7F3EA);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Header sticky */
.tt-header{
  display:grid;
  grid-template-columns: var(--label-w) calc(var(--slots) * var(--slot-w));
  min-width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.tt-header.is-window-sticky{
  position: fixed;
  top: var(--timeline-sticky-top, 0px);
  left: var(--timeline-sticky-left, 0px);
  width: var(--timeline-sticky-width, 100vw);
  min-width: 0;
  overflow: hidden;
  z-index: 1180;
  box-shadow: 0 10px 24px rgba(31, 42, 36, .12);
}

.tt-header.is-window-sticky .tt-times{
  width: calc(var(--slots) * var(--slot-w));
  transform: translateX(calc(-1 * var(--timeline-scroll-left, 0px)));
  transform-origin: left top;
}

.tt-corner{
  position: sticky;
  left: 0;
  z-index: 60;
  background: var(--bg);
  border-right: 1px solid var(--border);
  height: var(--header-h);
}

.tt-times{
  height: var(--header-h);
  display:grid;
  grid-template-columns: repeat(var(--slots), var(--slot-w));
  align-items:center;
}

.tt-time{
  text-align:left;
  font-weight:600;
  font-size:13px;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-left: 6px;
}
.tt-time:first-child{ border-left:0; }

.tt-section-title{
  display: flex;
  min-width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.tt-section-label{
  position: sticky;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 var(--timeline-view-w, 100vw);
  width: var(--timeline-view-w, 100vw);
  min-width: var(--timeline-view-w, 100vw);
  padding: 10px 12px;
  font-weight: 700;
  background: var(--bg);
}
.tt-section-label > span:last-child{
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
}
.tt-section-summary{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-left: .65rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tt-section-summary > span{
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  white-space: nowrap;
}
.tt-section-summary i{
  color: var(--bm-green, #2F3D34);
}
.tt-section-toggle{
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.tt-section-toggle-icon{
  display: inline-block;
  transition: transform .15s ease;
}
.tt-room-section.is-collapsed .tt-section-toggle-icon{
  transform: rotate(-90deg);
}
.tt-room-section.is-collapsed .tt-timeline{
  display: none;
}
.tt-section-fill{
  flex: 1 1 auto;
}

/* Timeline wrapper: rows + overlay */
.tt-timeline{
  position: relative;
  min-width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
}

/* elke rij: label + gridvlak */
.tt-row{
  position: relative;
  display: flex;
  min-width: calc(var(--label-w) + (var(--slots) * var(--slot-w)));
  border-bottom: 1px solid var(--border);
  height: var(--row-h);
  min-height: 0;
  box-sizing: border-box;
}

/* sticky label */
.tt-label{
  position: sticky;
  left: 0;
  z-index: 80;
  flex: 0 0 var(--label-w);
  min-width: var(--label-w);
  max-width: var(--label-w);
  background: var(--bg);
  border-right: 1px solid var(--border);

  display:grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content:normal;
  gap: 4px;
  align-items:center;

  padding: 0 6px;
  height: var(--row-h);
}
.tt-label .tbl{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight:700;
  font-size: 12px;
  line-height: 1;
  min-width: 0;
  max-width: calc(var(--label-w) - 30px);
}
.tt-label .tbl__name{
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-label .tbl__book-dot{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18) inset;
}
.tt-label .tbl__book-dot.is-bookable{
  background: #16a34a;
}
.tt-label .tbl__book-dot.is-unbookable{
  background: #dc2626;
}
.tt-label .tbl__book-dot.is-squeeze{
  background: #f59e0b;
}
.tt-label .tbl__book-dot.is-completed{
  background: #9ca3af;
}
.tt-label .tbl__book-dot.is-offline{
  background: #6b7280;
}
.tt-label .pax{
  font-size:10px;
  color: var(--muted);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

/* de grid-achtergrond per rij */
.tt-grid{
  position: relative;
  flex: 0 0 calc(var(--slots) * var(--slot-w));
  min-width: calc(var(--slots) * var(--slot-w));
  height: 100%;
  background: var(--bg);
}
.tt-grid.is-offline{
  cursor: pointer;
  background-color: color-mix(in srgb, #6b7280 10%, var(--bg));
}

.rows > .tt-row:nth-child(even) .tt-label,
.rows > .tt-row:nth-child(even) .tt-grid{
  background: #fffaf1;
}

/* nette lijnen: 15-min + uur */
.tt-grid::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(4 * var(--slot-w) - 2px),
      rgba(125,135,126,.74) calc(4 * var(--slot-w) - 3px),
      rgba(125,135,126,.74) calc(4 * var(--slot-w))
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(2 * var(--slot-w) - 2px),
      rgba(216,210,196,.92) calc(2 * var(--slot-w) - 2px),
      rgba(216,210,196,.92) calc(2 * var(--slot-w))
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--slot-w) - 1px),
      rgba(216,210,196,.62) calc(var(--slot-w) - 1px),
      rgba(216,210,196,.62) var(--slot-w)
    );
}

/* shade per rij (optioneel) */
.shade{
  position:absolute;
  top:0; bottom:0;
  background: var(--shade);
  z-index: 0;
  pointer-events:none;
}

/* ✅ OVERLAY: alle reserveringen hier */
.overlay{
  position:absolute;
  top: 0;
  left: var(--label-w);
  width: calc(var(--slots) * var(--slot-w));
  bottom: 0;

  display:grid;
  grid-template-columns: repeat(var(--slots), var(--slot-w));
  grid-auto-rows: var(--row-h);

  z-index: 30;

  /* super belangrijk voor drag/drop later */
  pointer-events: none;
}

/* reserveringen blijven interactief */
.overlay .resv{
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.overlay .resv[data-locked="1"]{
  cursor: not-allowed;
}

body.timeline-touch-dragging,
body.timeline-touch-dragging *{
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

.resv:active{ cursor: grabbing; }

.resv{
  margin: 0;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1.15;
  background: var(--resv-bg, #6b7280);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,.14);
  align-self: stretch; /* mooi bij multi-row stacks */
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 4px;
  position: relative;
}

.resv--multi-row{
  align-items: flex-start;
  padding-top: 4px;
}

.resv.is-selected{
  outline: none;
  box-shadow: none;
}

.timeline-drag-preview{
  position: absolute;
  left: calc((var(--drag-start-slot) - 1) * var(--slot-w));
  top: calc(((var(--drag-target-row) - 1) * var(--row-h)) + 2px);
  width: calc((var(--drag-end-slot) - var(--drag-start-slot)) * var(--slot-w));
  height: calc((var(--drag-row-span) * var(--row-h)) - 4px);
  border: 2px dashed color-mix(in srgb, var(--bm-green, #2F3D34) 72%, white);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 14%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  pointer-events: none;
  z-index: 34;
}

.resv::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background-image: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 100%);
  background-size: 100% var(--resv-grad-size, 100%);
  background-position: 0 var(--resv-grad-pos, 0%);
  background-repeat: no-repeat;
  pointer-events:none;
}

.resv__lock{
  font-size: 12px;
  opacity: .92;
}

.resv--checked-in::before,
.resv--late::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0 auto 0 0;
  width:8px;
  border-radius:7px 0 0 7px;
  pointer-events:none;
}

.resv--checked-in,
.resv--late{
  /* Reserve space for the status strip without changing the grid placement. */
  padding-left:14px;
}

.resv__main,
.resv__chips,
.resv__link{
  position:relative;
  z-index:1;
}

.resv--checked-in::before{
  background:#39ff14;
}

.resv--late::before{
  background:#ff1f1f;
}

.resv__option-icon{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.resv__option-time{
  font-weight: 700;
}

.resv__danger-icon{
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.resv--danger{
  /* Capacity mismatch is a warning, not the reservation's actual colour. */
  box-sizing: border-box;
  border: 2px solid #dc2626;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 0 1px rgba(127,29,29,.18);
}

.resv--danger .resv__danger-icon{
  display: inline-flex;
  color: #fecaca;
}

.resv--completed{
  background: #6b7280 !important;
  border-color: rgba(55, 65, 81, .9);
}

.resv--blockade{
  background:
    repeating-linear-gradient(
      -45deg,
      #d1d5db 0,
      #d1d5db 8px,
      #e5e7eb 8px,
      #e5e7eb 16px
    ) !important;
  border-color: rgba(107, 114, 128, .7);
  color: #111827;
}

.resv--blockade::after{
  display: none;
}

.resv--option{
  opacity: .7;
}

.overlay .resv--draft{
  pointer-events: none;
  cursor: default;
}

.resv--draft{
  background: linear-gradient(
    90deg,
    var(--bm-green, #2F3D34) 0%,
    var(--bm-sage, #7D877E) 48%,
    var(--bm-green, #2F3D34) 100%
  ) !important;
  border-color: color-mix(in srgb, var(--bm-sage, #7D877E) 78%, var(--bm-green, #2F3D34));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 0 10px rgba(125, 135, 126, .34),
    0 0 18px rgba(47, 61, 52, .22);
  animation: timeline-draft-pulse 1.15s ease-in-out infinite;
}

.resv--draft::before{
  content:"";
  position:absolute;
  inset:-18%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(247, 243, 234, .16) 18%,
    rgba(255, 250, 241, .72) 50%,
    rgba(216, 210, 196, .28) 72%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-72%);
  animation: timeline-draft-glow 1.15s ease-in-out infinite;
  pointer-events:none;
}

.resv--draft::after{
  display: none;
}

@keyframes timeline-draft-glow {
  0% {
    transform: translateX(-72%);
    opacity: .45;
  }
  35% {
    opacity: .95;
  }
  100% {
    transform: translateX(72%);
    opacity: .45;
  }
}

@keyframes timeline-draft-pulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.18) inset,
      0 0 8px rgba(125, 135, 126, .18),
      0 0 12px rgba(47, 61, 52, .1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.34) inset,
      0 0 18px rgba(125, 135, 126, .54),
      0 0 32px rgba(47, 61, 52, .36);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.18) inset,
      0 0 8px rgba(125, 135, 126, .18),
      0 0 12px rgba(47, 61, 52, .1);
  }
}

.timeline-past-day .resv{
  background: #9ca3af !important;
  border-color: rgba(75, 85, 99, .92) !important;
}

.timeline-past-day .resv__danger-icon{
  display: none !important;
}

.resv__main{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.resv__text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resv__covers{
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  margin-right: 1px;
}

.resv__name{
  font-size: 12px;
  font-weight: 600;
}

.resv__visit-count{
  font-size: .68em;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
  opacity: .92;
  position: relative;
  top: -.08em;
}

.resv__link{
  font-size: 13px;
  line-height: 1;
  opacity: .92;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.resv__chips{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.resv__dietary-icon{
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(220,38,38,.9);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.resv__note-icon{
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(17,24,39,.35);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.resv__meta-icon{
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.resv__svc-chip{
  margin-left: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  background: var(--service-chip, #5E6673);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resv__svc-chip.has-deposit{
  width: auto;
  min-width: 22px;
  padding: 0 6px;
  white-space: nowrap;
}

.resv__agreed-chip{
  margin-left: 0;
  min-width: 46px;
  width: auto;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(17,24,39,.35);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* varianten */
.resv--soft{ background:#9ca3af; }
.resv--ok{ background:#16a34a; }
.resv--warn{ background:#f59e0b; }
.resv--bad{ background:#dc2626; }

/* gekoppelde segmenten (consecutief) */
.resv--grp-top{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  border-bottom-width: 0;
}
.resv--grp-bottom{
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
  border-top-width: 0;
}

.resv.is-dragging{
  opacity: .42;
  outline: none;
  box-shadow: none;
  transform: scale(.98);
  cursor: move;
  touch-action: none;
}

.resv {
  /*
   * Safari decides whether a touch becomes a scroll at pointerdown. Once a
   * reservation is being dragged that must not turn into page scrolling,
   * otherwise it sends pointercancel and drops the drag. The empty timeline
   * grid remains scrollable as usual.
   */
  touch-action: none;
}

.timeline-fab {
  position: fixed;
  right: 22px;
  bottom: 74px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: 0 10px 24px rgba(47,61,52,.28);
  z-index: 1250;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-sticky-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .42rem .8rem;
  border-top: 1px solid var(--bm-border, #D8D2C4);
  background: rgba(247,243,234,.96);
  backdrop-filter: blur(4px);
}

@media (min-width: 992px){
  .timeline-sticky-footer{
    left: 280px;
  }

  body.sidebar-collapsed .timeline-sticky-footer{
    left: 88px;
  }

  body.timeline-service-mode .timeline-sticky-footer{
    left: 80px;
  }
}

.timeline-day-memo{
  border: 1px solid var(--bm-border, #D8D2C4);
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  border-radius: .5rem;
  min-height: 34px;
  padding: .3rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  max-width: 38vw;
}

.timeline-day-memo.has-memos{
  border-color: color-mix(in srgb, var(--memo-accent, #FDE68A) 55%, var(--bm-sage, #7D877E));
  background: color-mix(in srgb, var(--memo-accent, #FDE68A) 24%, var(--bm-linen, #F7F3EA));
  box-shadow: 0 8px 18px rgba(31,42,36,.08);
}

.timeline-day-memo.has-memos i{
  color: var(--bm-wine, #8D4A43);
}

.timeline-day-memo #timelineDayMemoText{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-day-memo #timelineDayMemoText.is-empty{
  color: var(--bm-muted, #6F766F);
}

.timeline-memo-modal{
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  align-items: start;
  overflow: auto;
  padding: 96px 1rem 1rem;
}

.timeline-memo-modal[hidden]{
  display: none !important;
}

.timeline-memo-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(31,42,36,.42);
  backdrop-filter: blur(5px);
}

.timeline-memo-modal__panel{
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 112px);
  margin: 0 auto;
  background: var(--bm-linen, #F7F3EA);
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 1.25rem;
  box-shadow: 0 28px 72px rgba(31,42,36,.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.timeline-memo-modal__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1rem;
  color: var(--bm-linen, #F7F3EA);
  background: linear-gradient(135deg, var(--bm-green, #2F3D34), #1F2A24);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.timeline-memo-modal__title{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -.015em;
}

.timeline-memo-modal__subtitle{
  margin: .18rem 0 0;
  color: rgba(247,243,234,.76);
  font-size: .9rem;
}

.timeline-memo-modal__body{
  padding: 1.15rem;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(231,226,214,.42));
}

.timeline-memo-modal__head .btn{
  --bs-btn-color: var(--bm-linen, #F7F3EA);
  --bs-btn-border-color: rgba(247,243,234,.42);
  --bs-btn-hover-bg: rgba(247,243,234,.14);
  --bs-btn-hover-border-color: var(--bm-linen, #F7F3EA);
  --bs-btn-hover-color: var(--bm-linen, #F7F3EA);
  border-radius: .75rem;
}

.timeline-memo-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 1rem;
}

.timeline-memo-list{
  display: grid;
  gap: .75rem;
}

.timeline-memo-card-shell{
  display: grid;
  gap: .45rem;
}

.timeline-memo-card{
  width: 100%;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .85rem;
  padding: .85rem .9rem;
  background: rgba(255,255,255,.88);
  border-left: 8px solid var(--memo-color, #FDE68A);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease;
}

.timeline-memo-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31,42,36,.09);
}

.timeline-memo-card.is-active{
  box-shadow: 0 0 0 2px rgba(47,61,52,.15);
  border-color: var(--bm-green, #2F3D34);
}

.timeline-memo-card__meta{
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .45rem;
  color: var(--bm-muted, #6F766F);
  font-size: .8rem;
  font-weight: 600;
}

.timeline-memo-card__swatch{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--memo-color, #FDE68A);
  border: 1px solid rgba(15,23,42,.12);
}

.timeline-memo-card__text{
  margin: 0;
  color: var(--bm-ink, #1F2A24);
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.timeline-memo-card__delete{
  justify-self: end;
}

.timeline-memo-form{
  display: grid;
  gap: .8rem;
  align-content: start;
  padding: .2rem;
}

.timeline-memo-form__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.timeline-memo-color-palette{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.timeline-memo-color{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--memo-color);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}

.timeline-memo-color.is-selected{
  border-color: var(--bm-green, #2F3D34);
}

.timeline-memo-form__actions{
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: flex-end;
}

@media (max-width: 991px){
  .timeline-memo-modal{
    padding: calc(var(--app-header-mobile-h, 58px) + .85rem) .75rem .75rem;
  }

  .timeline-memo-modal__panel{
    max-height: calc(100dvh - var(--app-header-mobile-h, 58px) - 1.6rem);
  }

  .timeline-memo-layout{
    grid-template-columns: 1fr;
  }
}

.timeline-footer-right{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}

.timeline-footer-summary{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--bm-ink, #1F2A24);
  font-size: .85rem;
  white-space: nowrap;
}

.timeline-footer-summary i{
  margin-right: .25rem;
  color: var(--bm-sage, #7D877E);
}

.timeline-footer-waitlist-btn{
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .05rem;
  font: inherit;
  cursor: pointer;
}

.timeline-footer-waitlist-btn:hover{
  color: var(--bm-green, #2F3D34);
}

.timeline-footer-waitlist-btn:focus-visible{
  outline: 2px solid var(--bm-sage, #7D877E);
  outline-offset: 4px;
  border-radius: .35rem;
}

.timeline-day-status{
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--bm-ink, #1F2A24);
  padding: 0;
}

.timeline-day-status__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.timeline-day-status--closed .timeline-day-status__dot{ background:var(--bm-wine, #8D4A43); }
.timeline-day-status--full .timeline-day-status__dot{ background:#B8844F; }
.timeline-day-status--available .timeline-day-status__dot{ background:#16A34A; }
.timeline-day-status--completed{ color:var(--bm-muted, #6F766F); }
.timeline-day-status--completed .timeline-day-status__dot{ background:#9ca3af; }

.timeline-status-modal{
  position: fixed;
  inset: 0;
  z-index: 2130;
}

.timeline-status-modal[hidden]{
  display: none !important;
}

body.timeline-status-modal-open{
  overflow: hidden;
  overscroll-behavior: none;
}

.timeline-status-modal__backdrop{
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(31,42,36,.38);
}

.timeline-status-modal__panel{
  position: relative;
  width: min(100% - 2rem, 35rem);
  max-height: calc(100dvh - 2rem);
  margin: 1rem auto;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .8rem;
  background: var(--bm-linen, #F7F3EA);
  box-shadow: 0 22px 64px rgba(31,42,36,.2);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.timeline-status-modal__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid var(--bm-border, #D8D2C4);
}

.timeline-status-modal__eyebrow{
  margin-bottom: .35rem;
  color: var(--bm-muted, #6F766F);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.timeline-status-modal__title{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bm-ink, #1F2A24);
}

.timeline-status-modal__subtitle{
  margin: .18rem 0 0;
  color: var(--bm-muted, #6F766F);
  font: .93rem/1.5 "Lora", Georgia, serif;
}

.timeline-status-modal__body{
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.2rem 1.35rem 1.35rem;
}

.timeline-status-modal__close{
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 50%;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  padding: 0;
  line-height: 1;
}

.timeline-status-modal__close .bi{
  display: block;
  line-height: 1;
}

.timeline-status-modal__options{
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.timeline-status-modal__options legend,
.timeline-status-modal__field > span{
  margin-bottom: .25rem;
  color: var(--bm-muted, #6F766F);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.timeline-status-modal__option{
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .75rem .8rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .5rem;
  background: #fffaf1;
  cursor: pointer;
}

.timeline-status-modal__option.is-selected{
  border-color: var(--bm-green, #2F3D34);
  background: rgba(125,135,126,.12);
}

.timeline-status-modal__option input{
  margin-top: .22rem;
  accent-color: var(--bm-green, #2F3D34);
}

.timeline-status-modal__option span{ display: grid; gap: .12rem; }
.timeline-status-modal__option strong{ color: var(--bm-ink, #1F2A24); font-size: .88rem; font-weight: 600; }
.timeline-status-modal__option small{ color: var(--bm-muted, #6F766F); font: .84rem/1.35 "Lora", Georgia, serif; }
.timeline-status-modal__field{ display: grid; gap: .45rem; }
.timeline-status-modal__limits{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.timeline-status-modal__field input{ width: 100%; border: 1px solid var(--bm-border, #D8D2C4); border-radius: .45rem; background: #fffaf1; padding: .62rem .7rem; color: var(--bm-ink, #1F2A24); }
.timeline-status-modal__field em{ font-style: normal; font-weight: 400; }
.timeline-status-modal__field textarea{
  width: 100%;
  resize: vertical;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .5rem;
  outline: 0;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  padding: .7rem .8rem;
  font: .93rem/1.55 "Lora", Georgia, serif;
}
.timeline-status-modal__field textarea:focus,
.timeline-status-modal__close:focus-visible,
.timeline-status-modal__button:focus-visible{ outline: 2px solid var(--bm-green, #2F3D34); outline-offset: 3px; }
.timeline-status-modal__error{ margin: 0; color: var(--bm-wine, #8D4A43); font-size: .85rem; }
.timeline-status-modal__actions{ display: flex; justify-content: flex-end; gap: .55rem; padding-top: .25rem; }
.timeline-status-modal__button{
  min-height: 2.65rem;
  border: 1px solid var(--bm-green, #2F3D34);
  border-radius: .45rem;
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  padding: .55rem 1rem;
  font: 500 .86rem "Sora", system-ui, sans-serif;
}
.timeline-status-modal__button:disabled{ opacity: .65; cursor: wait; }
.timeline-status-modal__button--secondary{ border-color: var(--bm-border, #D8D2C4); background: transparent; color: var(--bm-ink, #1F2A24); }
}

.timeline-fab i {
  font-size: 1.2rem;
  line-height: 1;
}

.timeline-composer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 36, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1250;
}

.timeline-composer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.timeline-waitlist-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1240;
}

.timeline-waitlist-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

.timeline-waitlist-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -12px 0 28px rgba(15,23,42,.12);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 1245;
  display: grid;
  grid-template-rows: auto 1fr;
}

.timeline-waitlist-drawer.is-open{
  transform: translateX(0);
}

.timeline-waitlist-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid #e5e7eb;
}

.timeline-waitlist-drawer__title{
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.timeline-waitlist-drawer__actions{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.timeline-waitlist-drawer__list{
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: 1rem;
  overflow-y: auto;
}

.timeline-waitlist-drawer__empty{
  padding: 1rem;
  color: #64748b;
  font-size: .92rem;
}

.timeline-waitlist-item{
  border: 1px solid #dbe2ea;
  border-radius: .9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: .8rem .85rem;
  display: grid;
  gap: .28rem;
  text-align: left;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  cursor: pointer;
}

.timeline-waitlist-item:hover{
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(37,99,235,.12);
}

.timeline-waitlist-item__title{
  font-size: .95rem;
  font-weight: 700;
}

.timeline-waitlist-item__meta{
  font-size: .8rem;
  color: #475569;
}

.timeline-waitlist-item__meta strong{
  color: #0f172a;
  font-weight: 700;
}

.timeline-waitlist-item__icons{
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding-top: .15rem;
}

.timeline-waitlist-item__icon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: .82rem;
}

.timeline-waitlist-item__icon:last-child{
  background: #ecfeff;
  color: #0f766e;
}

.timeline-composer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100vh;
  background:
    linear-gradient(180deg, #fffaf1 0%, var(--bm-linen, #F7F3EA) 48%, var(--bm-ivory, #E7E2D6) 100%);
  border-left: 1px solid var(--bm-border, #D8D2C4);
  box-shadow: -16px 0 34px rgba(31, 42, 36, .18);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 1260;
  padding: .75rem;
  overflow-y: auto;
  color: var(--bm-ink, #1F2A24);
}

body.timeline-service-mode .timeline-composer {
  top: 72px;
  height: calc(100vh - 72px);
}

body.timeline-service-mode .timeline-waitlist-drawer{
  top: 72px;
  height: calc(100vh - 72px);
}

.timeline-composer.is-open {
  transform: translateX(0);
}

.timeline-composer.is-table-picker-open{
  overflow: hidden;
  padding: 0;
}

body.guest-profile-modal-open .modal-backdrop.show{
  z-index: 2090;
}

body.guest-profile-modal-open #guestProfileModal{
  z-index: 2100;
}

.timeline-composer .iti,
#guestProfileModal .iti{
  width: 100%;
}

.timeline-composer .iti__tel-input,
#guestProfileModal .iti__tel-input{
  width: 100%;
}

.timeline-composer .row{
  --bs-gutter-x: .5rem;
  --bs-gutter-y: .42rem;
}

.timeline-overlap-modal[hidden]{
  display: none !important;
}

.timeline-overlap-modal{
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.timeline-overlap-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.35);
}

.timeline-overlap-modal__dialog{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: .7rem;
  box-shadow: 0 16px 34px rgba(2,6,23,.24);
  padding: .85rem .9rem;
}

.timeline-overlap-modal__title{
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
}

.timeline-overlap-modal__text{
  margin: 0 0 .7rem;
  color: #475569;
  font-size: .9rem;
}

.timeline-overlap-modal__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

.timeline-composer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .55rem;
  color: var(--bm-ink, #1F2A24);
}

.timeline-composer__head .btn-outline-secondary{
  --bs-btn-color: var(--bm-green, #2F3D34);
  --bs-btn-border-color: color-mix(in srgb, var(--bm-sage, #7D877E) 50%, var(--bm-border, #D8D2C4));
  --bs-btn-hover-bg: var(--bm-green, #2F3D34);
  --bs-btn-hover-border-color: var(--bm-green, #2F3D34);
  --bs-btn-hover-color: var(--bm-linen, #F7F3EA);
  background: #fffaf1;
}

.timeline-composer-tabs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: .22rem;
  margin-bottom: .65rem;
  padding: .22rem;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 28%, var(--bm-border, #D8D2C4));
  border-radius: .78rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 6%, var(--bm-linen, #F7F3EA));
}

.timeline-type-toggle{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem;
  margin-bottom: .5rem;
}

.timeline-type-toggle__btn{
  min-height: 34px;
  min-width: 0;
  padding: .34rem .42rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .68rem;
  background: #fffaf1;
  color: var(--bm-muted, #6F766F);
  font-size: clamp(.72rem, 2.1vw, .8rem);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.timeline-type-toggle__btn:hover{
  border-color: var(--bm-sage, #7D877E);
  color: var(--bm-green, #2F3D34);
  background: var(--bm-linen, #F7F3EA);
}

.timeline-type-toggle__btn.is-active{
  border-color: var(--bm-green, #2F3D34);
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: 0 10px 22px rgba(47, 61, 52, .18);
}

.timeline-walkin-hint{
  margin-bottom: .55rem;
  padding: .52rem .6rem;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 38%, var(--bm-border, #D8D2C4));
  border-radius: .68rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
  font-size: .76rem;
}

.timeline-composer-tab{
  position: relative;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bm-muted, #6F766F);
  border-radius: .58rem;
  padding: 0;
  min-height: 38px;
  min-width: 38px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.timeline-composer-tab i{
  line-height: 1;
  transform: translateY(.5px);
}

.timeline-composer-tab:hover{
  border-color: color-mix(in srgb, var(--bm-sage, #7D877E) 48%, var(--bm-border, #D8D2C4));
  background: rgba(255, 250, 241, .82);
  color: var(--bm-green, #2F3D34);
}

.timeline-composer-tab:focus-visible{
  outline: none;
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .14);
}

.timeline-composer-tab.is-active{
  background: var(--bm-green, #2F3D34);
  border-color: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: 0 8px 18px rgba(47, 61, 52, .18);
}

.timeline-composer-tab.is-active::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: .72;
}

.timeline-composer-pane[hidden]{
  display: none !important;
}

.timeline-composer-pane{
  display: grid;
  gap: .52rem;
}

.timeline-composer-placement-warning{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
  margin-top: .5rem;
  padding: .7rem;
  border: 1px solid #dc2626;
  border-radius: .55rem;
  background: #fff1f2;
  color: #991b1b;
  font-size: .82rem;
}

.timeline-composer-placement-warning__title{
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
}

.timeline-composer-placement-warning ul{
  margin: .28rem 0 0;
  padding-left: 1.05rem;
}

.timeline-feedback-pane{
  display: grid;
  gap: .75rem;
}

.timeline-feedback-question-list{
  display: grid;
  gap: .5rem;
}

.timeline-feedback-question{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  padding: .65rem .75rem;
}

.timeline-feedback-question.is-default{
  border-color: color-mix(in srgb, var(--bm-wine, #8D4A43) 38%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, var(--bm-wine, #8D4A43) 8%, #fffaf1);
}

.timeline-feedback-question__text{
  color: var(--bm-ink, #1F2A24);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-feedback-question__meta{
  margin-top: .12rem;
  color: var(--bm-muted, #6F766F);
  font-size: .76rem;
}

.timeline-feedback-status{
  display: grid;
  gap: .65rem;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 42%, var(--bm-border, #D8D2C4));
  border-radius: .7rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 10%, var(--bm-linen, #F7F3EA));
  padding: .75rem;
}

.timeline-feedback-status__title{
  color: var(--bm-green, #2F3D34);
  font-size: .82rem;
  font-weight: 800;
}

.timeline-feedback-status__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.timeline-feedback-status__grid div,
.timeline-feedback-answer{
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 38%, var(--bm-border, #D8D2C4));
  border-radius: .6rem;
  background: rgba(255, 250, 241, .74);
  padding: .5rem .6rem;
}

.timeline-feedback-status__grid span,
.timeline-feedback-answer span{
  display: block;
  color: var(--bm-muted, #6F766F);
  font-size: .72rem;
  font-weight: 700;
}

.timeline-feedback-status__grid strong,
.timeline-feedback-answer strong{
  color: var(--bm-ink, #1F2A24);
  font-size: .85rem;
}

.timeline-feedback-status__answers{
  display: grid;
  gap: .5rem;
}

.timeline-feedback-rating{
  color: var(--bm-ink, #1F2A24);
  font-weight: 800;
}

.timeline-feedback-comment{
  border-left: 3px solid var(--bm-sage, #7D877E);
  padding-left: .65rem;
  color: var(--bm-ink, #1F2A24);
  font-size: .88rem;
}

.timeline-surface-card{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  padding: .42rem .52rem;
}

.timeline-documents-pane{
  display: grid;
  gap: .75rem;
}

.timeline-documents-list{
  display: grid;
  gap: .5rem;
}

.timeline-document-item{
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  padding: .6rem;
  text-decoration: none;
}

.timeline-document-item:hover{
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 11%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
}

.timeline-document-item i{
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: .6rem;
  background: var(--bm-linen, #F7F3EA);
  color: var(--bm-green, #2F3D34);
}

.timeline-document-item span{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-document-item strong{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-document-item small,
.timeline-documents-muted{
  color: var(--bm-muted, #6F766F);
  font-size: .82rem;
}

.timeline-upload-row,
.timeline-agreement-create{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
}

.timeline-agreement-list{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.timeline-agreement-chip{
  display: flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  cursor: pointer;
  padding: .42rem .62rem;
}

.timeline-agreement-chip.is-selected{
  border-color: var(--bm-green, #2F3D34);
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
}

.timeline-agreement-chip.is-inactive{
  opacity: .62;
}

.timeline-agreement-chip span{
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.timeline-agreement-chip strong{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-agreement-chip small{
  color: var(--bm-muted, #6F766F);
}

.timeline-field-label{
  display: inline-block;
  margin-bottom: .16rem;
  font-size: .66rem;
  color: var(--bm-muted, #6F766F);
  font-weight: 600;
}

.timeline-field-input{
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  padding: .32rem .5rem;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.timeline-field-input:focus{
  border-color: var(--bm-green, #2F3D34);
  background: #fffaf1;
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .12);
}

.timeline-phone-input{
  display: flex;
  min-height: 36px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  overflow: hidden;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.timeline-phone-input:focus-within{
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .12);
}

.timeline-phone-input__country{
  width: 80px;
  flex: 0 0 80px;
  border: 0;
  border-right: 1px solid var(--bm-border, #D8D2C4);
  background: var(--bm-linen, #F7F3EA);
  color: var(--bm-ink, #1F2A24);
  font-size: .78rem;
  font-weight: 700;
  padding: 0 .28rem;
  outline: none;
  cursor: pointer;
}

.timeline-phone-input__number{
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  padding: .32rem .5rem;
}

.timeline-textarea-card{
  position: relative;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.timeline-textarea-card:focus-within{
  border-color: var(--bm-green, #2F3D34);
  background: #fffaf1;
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .12);
}

.timeline-textarea-card__label{
  position: absolute;
  top: .34rem;
  left: .52rem;
  font-size: .66rem;
  color: var(--bm-muted, #6F766F);
  font-weight: 600;
  line-height: 1.1;
  pointer-events: none;
}

.timeline-textarea-card__input{
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: .54rem;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  padding: 1.2rem .52rem .42rem;
  outline: none;
  resize: vertical;
}

.timeline-field-selectlike{
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  font-weight: 600;
  padding: .32rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.timeline-field-selectlike:hover{
  border-color: var(--bm-sage, #7D877E);
  background: var(--bm-linen, #F7F3EA);
}

.timeline-switch-card{
  min-height: 34px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  padding: .34rem .5rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.timeline-check-input{
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  margin: 0;
  border: 1px solid var(--bm-sage, #7D877E);
  border-radius: .32rem;
  background: #fffaf1;
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.timeline-check-input::after{
  content: "";
  width: .34rem;
  height: .58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .14s ease;
}

.timeline-check-input:checked{
  border-color: var(--bm-green, #2F3D34);
  background: var(--bm-green, #2F3D34);
}

.timeline-check-input:checked::after{
  transform: translate(-50%, -56%) rotate(45deg) scale(1);
}

.timeline-check-input:focus-visible{
  outline: none;
  box-shadow: 0 0 0 .18rem rgba(47, 61, 52, .16);
}

.timeline-switch-card .form-check-input{
  margin-top: 0;
  border-color: var(--bm-sage, #7D877E);
  background-color: #fffaf1;
}

.timeline-switch-card .form-check-input:checked{
  border-color: var(--bm-green, #2F3D34);
  background-color: var(--bm-green, #2F3D34);
}

.timeline-switch-card .form-check-input:focus{
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 .18rem rgba(47, 61, 52, .14);
}

.timeline-switch-card .form-check-label{
  font-size: .82rem;
  color: var(--bm-ink, #1F2A24);
  font-weight: 600;
}

.timeline-composer-placeholder{
  border: 1px dashed color-mix(in srgb, var(--bm-sage, #7D877E) 55%, var(--bm-border, #D8D2C4));
  border-radius: .8rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 8%, var(--bm-linen, #F7F3EA));
  color: var(--bm-muted, #6F766F);
  padding: 1rem;
  font-size: .92rem;
}

.timeline-move-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 42, 36, .28);
  backdrop-filter: blur(3px);
}

.timeline-move-modal{
  width: min(440px, 100%);
  border: 1px solid color-mix(in srgb, var(--bm-green, #2F3D34) 24%, var(--bm-border, #D8D2C4));
  border-radius: .9rem;
  background: linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
  box-shadow: 0 22px 52px rgba(31, 42, 36, .24);
  padding: .9rem;
  display: grid;
  gap: .75rem;
}

.timeline-move-modal__head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
}

.timeline-move-modal__head h3{
  margin: 0;
  color: var(--bm-ink, #1F2A24);
  font-size: 1rem;
  font-weight: 850;
}

.timeline-move-modal__head p{
  margin: .18rem 0 0;
  color: var(--bm-muted, #6F766F);
  font-size: .84rem;
  line-height: 1.35;
}

.timeline-move-modal__close{
  width: 34px;
  height: 34px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .58rem;
  background: #fffaf1;
  color: var(--bm-muted, #6F766F);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.timeline-move-modal__close:hover{
  border-color: var(--bm-green, #2F3D34);
  color: var(--bm-green, #2F3D34);
}

.timeline-move-modal__list{
  display: grid;
  gap: .45rem;
  max-height: 180px;
  overflow: auto;
}

.timeline-move-modal__item{
  display: grid;
  gap: .14rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .62rem;
  background: #fffaf1;
  padding: .56rem .64rem;
}

.timeline-move-modal__item strong{
  color: var(--bm-ink, #1F2A24);
  font-size: .88rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.timeline-move-modal__item span{
  color: var(--bm-muted, #6F766F);
  font-size: .74rem;
  font-weight: 650;
}

.timeline-move-modal__actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.timeline-move-modal__action{
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--bm-green, #2F3D34) 34%, var(--bm-border, #D8D2C4));
  border-radius: .62rem;
  background: #fffaf1;
  color: var(--bm-green, #2F3D34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  padding: .42rem .52rem;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.timeline-move-modal__action:hover{
  border-color: var(--bm-green, #2F3D34);
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: 0 8px 18px rgba(47, 61, 52, .14);
}

.timeline-move-modal__action--ghost{
  grid-column: 1 / -1;
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--bm-muted, #6F766F);
}

.timeline-move-modal__action--ghost:hover{
  border-color: var(--bm-border, #D8D2C4);
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 8%, var(--bm-linen, #F7F3EA));
  color: var(--bm-ink, #1F2A24);
  box-shadow: none;
}

@media (max-width: 520px){
  .timeline-move-modal__actions{
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-move-modal__action--ghost{
    grid-column: auto;
  }
}

.timeline-react-tab{
  display: grid;
  gap: .7rem;
  min-width: 0;
  color: var(--bm-ink, #1F2A24);
}

.timeline-react-tab > p,
.timeline-react-empty{
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--bm-sage, #7D877E) 45%, var(--bm-border, #D8D2C4));
  border-radius: .68rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 7%, var(--bm-linen, #F7F3EA));
  color: var(--bm-muted, #6F766F);
  padding: .82rem .9rem;
  font-size: .86rem;
  font-weight: 600;
}

.timeline-react-tab > a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  justify-self: start;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--bm-green, #2F3D34) 34%, var(--bm-border, #D8D2C4));
  border-radius: .54rem;
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 8%, #fffaf1);
  color: var(--bm-green, #2F3D34);
  padding: .38rem .62rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.timeline-react-tab > a:hover{
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
}

.timeline-react-tab button,
.timeline-react-upload{
  border: 1px solid color-mix(in srgb, var(--bm-green, #2F3D34) 34%, var(--bm-border, #D8D2C4));
  border-radius: .54rem;
  background: #fffaf1;
  color: var(--bm-green, #2F3D34);
  min-height: 34px;
  padding: .38rem .64rem;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.15;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.timeline-react-tab button:hover:not(:disabled),
.timeline-react-upload:hover{
  border-color: var(--bm-green, #2F3D34);
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: 0 8px 16px rgba(47, 61, 52, .14);
}

.timeline-react-tab button:focus-visible,
.timeline-react-upload:focus-within{
  outline: none;
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .14);
}

.timeline-react-tab button:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.timeline-react-tab > button{
  justify-self: start;
}

.timeline-react-money{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
}

.timeline-react-money div{
  display: grid;
  gap: .2rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .68rem;
  background: #fffaf1;
  padding: .72rem .78rem;
  box-shadow: 0 8px 18px rgba(31, 42, 36, .04);
}

.timeline-react-money dt{
  color: var(--bm-muted, #6F766F);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.timeline-react-money dd{
  margin: 0;
  color: var(--bm-ink, #1F2A24);
  font-size: 1rem;
  font-weight: 800;
}

.timeline-react-form,
.timeline-react-inline-form{
  display: grid;
  gap: .55rem;
  min-width: 0;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .72rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 5%, var(--bm-linen, #F7F3EA));
  padding: .68rem;
}

.timeline-react-inline-form{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.timeline-react-inline-form button{
  grid-column: 1 / -1;
  justify-self: start;
}

.timeline-react-form label{
  display: grid;
  gap: .28rem;
  color: var(--bm-muted, #6F766F);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.timeline-react-form input,
.timeline-react-form textarea,
.timeline-react-inline-form input{
  width: 100%;
  min-width: 0;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  padding: .42rem .55rem;
  outline: none;
}

.timeline-react-form textarea{
  min-height: 104px;
  resize: vertical;
  line-height: 1.38;
}

.timeline-react-form input:focus,
.timeline-react-form textarea:focus,
.timeline-react-inline-form input:focus{
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .12);
}

.timeline-react-check-list{
  display: grid;
  gap: .45rem;
}

.timeline-react-check-list label{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  min-height: 42px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .62rem;
  background: #fffaf1;
  padding: .5rem .62rem;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.timeline-react-check-list label:has(input:checked){
  border-color: color-mix(in srgb, var(--bm-green, #2F3D34) 50%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 8%, #fffaf1);
}

.timeline-react-check-list input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  border: 1.5px solid var(--bm-sage, #7D877E);
  border-radius: .32rem;
  background: #fffaf1;
}

.timeline-react-check-list input[type="checkbox"]::before{
  content: "";
  width: .34rem;
  height: .58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
  margin-top: -.08rem;
}

.timeline-react-check-list input[type="checkbox"]:checked{
  border-color: var(--bm-green, #2F3D34);
  background: var(--bm-green, #2F3D34);
}

.timeline-react-check-list input[type="checkbox"]:checked::before{
  transform: rotate(45deg) scale(1);
}

.timeline-react-check-list input[type="checkbox"]:disabled,
.timeline-react-check-list label:has(input:disabled){
  opacity: .62;
  cursor: not-allowed;
}

.timeline-react-upload{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin: 0;
  overflow: hidden;
}

.timeline-react-upload input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.timeline-react-resource-list{
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.timeline-react-resource-list article{
  display: grid;
  gap: .32rem;
  min-width: 0;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .68rem;
  background: #fffaf1;
  padding: .72rem .78rem;
  box-shadow: 0 8px 18px rgba(31, 42, 36, .04);
}

.timeline-react-resource-list strong{
  min-width: 0;
  color: var(--bm-ink, #1F2A24);
  font-size: .9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.timeline-react-resource-list span{
  color: var(--bm-muted, #6F766F);
  font-size: .76rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.timeline-react-resource-list a{
  justify-self: start;
  color: var(--bm-green, #2F3D34);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.timeline-react-resource-list a:hover{
  text-decoration: underline;
}

.timeline-react-resource-list pre,
.timeline-react-tab > pre{
  max-width: 100%;
  margin: .25rem 0 0;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 34%, var(--bm-border, #D8D2C4));
  border-radius: .58rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 8%, var(--bm-linen, #F7F3EA));
  color: var(--bm-ink, #1F2A24);
  padding: .55rem .6rem;
  font-size: .72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 520px){
  .timeline-react-money,
  .timeline-react-inline-form{
    grid-template-columns: minmax(0, 1fr);
  }
}

.timeline-history-loading{
  color: var(--bm-muted, #6F766F);
  font-size: .9rem;
}

.timeline-history-list{
  position: relative;
  display: grid;
  gap: .9rem;
  padding-left: .45rem;
}

.timeline-history-list::before{
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bm-border, #D8D2C4);
}

.timeline-history-item{
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .7rem;
}

.timeline-history-item__dot{
  width: 11px;
  height: 11px;
  margin-top: .42rem;
  border-radius: 999px;
  background: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bm-green, #2F3D34) 12%, var(--bm-linen, #F7F3EA));
}

.timeline-history-item__body{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .8rem;
  background: #fffaf1;
  padding: .75rem .85rem;
  display: grid;
  gap: .5rem;
}

.timeline-history-item__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  color: var(--bm-ink, #1F2A24);
}

.timeline-history-item__head span{
  color: var(--bm-muted, #6F766F);
  font-size: .8rem;
  white-space: nowrap;
}

.timeline-history-item__actor{
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  justify-self: start;
  color: var(--bm-muted, #6F766F);
  font-size: .78rem;
  font-weight: 700;
}

.timeline-history-item__actor i{
  color: var(--bm-sage, #7D877E);
  line-height: 1;
}

.timeline-history-item__summary{
  color: var(--bm-ink, #1F2A24);
  font-size: .88rem;
}

.timeline-history-item__changes{
  display: grid;
  gap: .45rem;
}

.timeline-history-change{
  display: grid;
  gap: .2rem;
}

.timeline-history-change__label{
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--bm-muted, #6F766F);
}

.timeline-history-change__values{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .9rem;
}

.timeline-history-change__before{
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: .45rem;
  padding: .16rem .4rem;
}

.timeline-history-change__arrow{
  color: var(--bm-muted, #6F766F);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.timeline-history-change__after{
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .45rem;
  padding: .16rem .4rem;
}

.timeline-mail-meta{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  padding: .65rem .75rem;
  display: grid;
  gap: .25rem;
  font-size: .9rem;
}

.timeline-mail-thread{
  display: grid;
  gap: .65rem;
  align-content: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.timeline-mail-bubble{
  display: grid;
  gap: .45rem;
  max-width: 100%;
  min-width: 0;
  width: fit-content;
  max-inline-size: 100%;
  padding: .62rem .74rem .52rem;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(31, 42, 36, .05);
}

.timeline-mail-bubble.is-inbound{
  justify-self: start;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  border-top-left-radius: .35rem;
}

.timeline-mail-bubble.is-outbound{
  justify-self: end;
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 11%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
  border-top-right-radius: .35rem;
}

.timeline-mail-bubble__top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
}

.timeline-mail-bubble__top strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}

.timeline-react-tab .timeline-mail-bubble__icon-action{
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 34%, transparent);
  border-radius: 999px;
  background: rgba(255, 250, 241, .72);
  color: currentColor;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
}

.timeline-react-tab .timeline-mail-bubble__icon-action:hover{
  background: var(--bm-green, #2F3D34);
  border-color: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  box-shadow: none;
}

.timeline-mail-bubble__body{
  font-size: .84rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-mail-bubble__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .65rem;
  padding-top: .38rem;
  border-top: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 30%, transparent);
  font-size: .72rem;
  color: var(--bm-muted, #6F766F);
  min-width: 0;
}

.timeline-mail-bubble__sender{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.timeline-mail-bubble__status{
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.timeline-mail-bubble__statuses{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
}

.timeline-mail-bubble__status i{
  font-size: .78rem;
  line-height: 1;
}

.timeline-mail-bubble__status.is-sent{
  color: var(--bm-muted, #6F766F);
}

.timeline-mail-bubble__status.is-skipped{
  color: #b45309;
}

.timeline-mail-bubble__status.is-delivered{
  color: var(--bm-green, #2F3D34);
}

.timeline-mail-bubble__status.is-opened{
  color: var(--bm-sage, #7D877E);
}

.timeline-mail-bubble__status.is-clicked{
  color: var(--bm-green, #2F3D34);
}

.timeline-mail-bubble__status.is-bounced{
  color: #b45309;
}

.timeline-mail-bubble__status.is-complained{
  color: #c2410c;
}

.timeline-mail-bubble__status.is-not-delivered{
  color: #b91c1c;
}

.timeline-mail-bubble__actions{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
}

.timeline-mail-bubble__action{
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  border: 0;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 13%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
  border-radius: 999px;
  padding: .24rem .52rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.timeline-mail-bubble__action:hover{
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
}

.timeline-mail-bubble__action:disabled{
  opacity: .55;
  cursor: wait;
}

.timeline-mail-bubble__action i{
  font-size: .78rem;
  line-height: 1;
}

@media (max-width: 680px){
  .timeline-mail-bubble__meta{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: initial;
    align-items: start;
    gap: .28rem;
  }

  .timeline-mail-bubble__sender{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .timeline-mail-bubble__status{
    justify-self: start;
  }

  .timeline-mail-bubble__actions{
    justify-self: start;
    margin-left: 0;
  }
}

.timeline-mail-compose{
  display: grid;
  gap: .65rem;
}

.timeline-mail-compose__shell{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 1rem;
  background: #fffaf1;
  padding: .35rem;
  display: grid;
  gap: .45rem;
}

.timeline-mail-compose__card{
  border: 0;
  box-shadow: none;
}

.timeline-mail-compose__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: 0 .35rem .15rem;
}

.timeline-picker-stack{
  display: grid;
  gap: .4rem;
}

.timeline-picker-card{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .42rem;
  min-height: 40px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .58rem;
  background: linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
  padding: .32rem .55rem;
  box-shadow: 0 8px 18px rgba(31, 42, 36, .05);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.timeline-picker-card:hover,
.timeline-picker-card:focus-within{
  border-color: var(--bm-sage, #7D877E);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .10);
}

.timeline-picker-card__label{
  font-size: .66rem;
  color: var(--bm-muted, #6F766F);
  font-weight: 700;
  min-width: 34px;
}

.timeline-picker-card__value{
  font-size: .9rem;
  line-height: 1.2;
  color: var(--bm-ink, #1F2A24);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-picker-card__code{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 19px;
  border-radius: .38rem;
  padding: 0 .34rem;
  background: var(--service-chip, #5E6673);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.timeline-picker-card__chevron{
  color: var(--bm-sage, #7D877E);
  font-size: .88rem;
}

.timeline-picker-card__native{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.timeline-picker-card__native-hidden{
  display: none;
}

.timeline-picker-card--service{
  cursor: pointer;
}

.timeline-picker-card--clickable{
  cursor: pointer;
}

.timeline-picker-card--time{
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.timeline-picker-card__time-input{
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.2;
  outline: 0;
  padding: 0;
  cursor: pointer;
  color-scheme: light;
}

.timeline-picker-card__time-input::-webkit-calendar-picker-indicator{
  cursor: pointer;
  opacity: .82;
  filter: sepia(12%) saturate(520%) hue-rotate(78deg) brightness(82%);
}

.timeline-picker-card__trigger{
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.timeline-service-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  box-shadow: 0 14px 30px rgba(31, 42, 36, .16);
  padding: .3rem;
  display: grid;
  gap: .2rem;
  max-height: 230px;
  overflow: auto;
}

.timeline-service-option{
  border: 0;
  background: transparent;
  border-radius: .48rem;
  min-height: 34px;
  padding: .34rem .48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  color: var(--bm-ink, #1F2A24);
  cursor: pointer;
}

.timeline-service-option:hover{
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 11%, var(--bm-linen, #F7F3EA));
}

.timeline-service-option.is-selected{
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
}

.timeline-service-option__name{
  font-size: .84rem;
  font-weight: 500;
}

.timeline-service-option__main{
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-width: 0;
}

.timeline-service-option__swatch{
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--service-chip, #5E6673);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14);
}

.timeline-service-option__code{
  min-width: 26px;
  height: 19px;
  border-radius: .4rem;
  padding: 0 .42rem;
  background: var(--service-chip, #5E6673);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.timeline-picker-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .7rem;
  background: #fffaf1;
  box-shadow: 0 14px 30px rgba(31, 42, 36, .16);
  padding: .3rem;
  display: grid;
  gap: .2rem;
  max-height: 230px;
  overflow: auto;
}

.timeline-picker-option{
  border: 0;
  background: transparent;
  border-radius: .48rem;
  min-height: 34px;
  padding: .34rem .48rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--bm-ink, #1F2A24);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 500;
}

.timeline-picker-option:hover{
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 11%, var(--bm-linen, #F7F3EA));
}

.timeline-picker-option.is-selected{
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
  font-weight: 650;
}

.timeline-date-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 70;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .72rem;
  background: #fffaf1;
  box-shadow: 0 14px 30px rgba(31, 42, 36, .18);
  padding: .5rem;
}

.timeline-date-menu--card{
  left: -1px;
}

.timeline-date-menu__head{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: .35rem;
  margin-bottom: .45rem;
}

.timeline-date-menu__month{
  text-align: center;
  font-size: .92rem;
  font-weight: 700;
  color: var(--bm-ink, #1F2A24);
}

.timeline-date-menu__nav{
  width: 44px;
  height: 44px;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .48rem;
  background: var(--bm-linen, #F7F3EA);
  color: var(--bm-green, #2F3D34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.timeline-date-menu__nav:hover{
  border-color: var(--bm-sage, #7D877E);
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 14%, var(--bm-linen, #F7F3EA));
}

.timeline-date-menu__weekdays,
.timeline-date-menu__grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .2rem;
}

.timeline-date-menu__weekdays{
  margin-bottom: .25rem;
}

.timeline-date-menu__weekdays span{
  font-size: .72rem;
  text-transform: lowercase;
  color: var(--bm-muted, #6F766F);
  text-align: center;
  font-weight: 600;
}

.timeline-date-menu__day{
  position: relative;
  border: 1px solid transparent;
  border-radius: .48rem;
  min-height: 44px;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-date-menu__day:hover{
  border-color: color-mix(in srgb, var(--bm-sage, #7D877E) 42%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 10%, var(--bm-linen, #F7F3EA));
}

.timeline-date-menu__day-number{
  line-height: 1;
}

.timeline-date-menu__day.is-outside{
  color: color-mix(in srgb, var(--bm-muted, #6F766F) 54%, #fffaf1);
}

.timeline-date-menu__day.is-selected{
  background: var(--bm-green, #2F3D34);
  color: var(--bm-linen, #F7F3EA);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47, 61, 52, .18);
}

.timeline-date-menu__day.is-closed{
  background: color-mix(in srgb, var(--bm-wine, #8D4A43) 14%, #fffaf1);
  color: var(--bm-wine, #8D4A43);
}

.timeline-date-menu__day.is-full{
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 18%, #fffaf1);
  color: var(--bm-green, #2F3D34);
}

.timeline-date-menu__day.is-selected.is-closed{
  background: var(--bm-wine, #8D4A43);
  color: #fffaf1;
}

.timeline-date-menu__day.is-selected.is-full{
  background: var(--bm-sage, #7D877E);
  color: #fffaf1;
}

.timeline-date-menu__day-badge{
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bm-wine, #8D4A43);
  color: #fffaf1;
  font-size: .62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(31, 42, 36, .18);
}

.timeline-picker-card__date-input{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.timeline-picker-card--input{
  grid-template-columns: auto 1fr;
}

.timeline-picker-card__input{
  width: 100%;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: var(--bm-ink, #1F2A24);
  font-size: .86rem;
  font-weight: 650;
  outline: none;
  padding: 0;
}

.timeline-picker-card__input::-webkit-calendar-picker-indicator{
  cursor: pointer;
  opacity: .82;
  filter: sepia(12%) saturate(520%) hue-rotate(78deg) brightness(82%);
}

.timeline-covers-picker{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(88px, 108px);
  align-items: center;
  gap: .42rem;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .58rem;
  background: linear-gradient(180deg, var(--bm-linen, #F7F3EA) 0%, #fffaf1 100%);
  box-shadow: 0 8px 18px rgba(31, 42, 36, .05);
  padding: .4rem .55rem;
  min-height: 44px;
}

.timeline-covers-picker__label{
  font-size: .66rem;
  color: var(--bm-muted, #6F766F);
  font-weight: 700;
  letter-spacing: .02em;
  min-width: 34px;
}

.timeline-covers-picker__quick{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .24rem;
  min-width: 0;
  overflow: hidden;
}

.timeline-covers-picker__quick-btn{
  flex: 0 0 auto;
  border: 1px solid var(--bm-border, #D8D2C4);
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  padding: 0 .46rem;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.timeline-covers-picker__quick-btn:hover,
.timeline-covers-picker__quick-btn.is-selected{
  border-color: var(--bm-green, #2F3D34);
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, var(--bm-linen, #F7F3EA));
  color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .10);
  transform: translateY(-1px);
}

.timeline-covers-picker__quick-btn:disabled{
  cursor: default;
  transform: none;
}

.timeline-covers-picker__select{
  position: relative;
  min-width: 0;
}

.timeline-covers-picker__select-shell{
  position: relative;
  display: flex;
  align-items: center;
  border-radius: .7rem;
  transition: box-shadow .16s ease;
  overflow: hidden;
}

.timeline-covers-picker__select-shell:focus-within{
  box-shadow: 0 0 0 4px rgba(47, 61, 52, .12);
}

.timeline-covers-picker__select-shell > .bi{
  position: absolute;
  right: .72rem;
  color: var(--bm-sage, #7D877E);
  font-size: .78rem;
  pointer-events: none;
}

.timeline-covers-picker__native{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .56rem;
  background: linear-gradient(180deg, #fffaf1 0%, var(--bm-linen, #F7F3EA) 100%);
  color: var(--bm-ink, #1F2A24);
  min-height: 34px;
  padding: 0 1.7rem 0 .55rem;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
  text-align: center;
  text-align-last: center;
}

.timeline-covers-picker__native:hover{
  border-color: var(--bm-sage, #7D877E);
}

.timeline-covers-picker__native:focus{
  outline: none;
  border-color: var(--bm-green, #2F3D34);
  box-shadow: 0 0 0 3px rgba(47, 61, 52, .12);
}

.timeline-covers-picker__native option{
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  font-weight: 600;
  padding: .45rem .65rem;
}

.timeline-table-picker {
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .54rem;
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 7%, var(--bm-linen, #F7F3EA));
  padding: .42rem;
  max-height: 280px;
  overflow: auto;
}

.timeline-table-picker-summary{
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--bm-sage, #7D877E) 50%, var(--bm-border, #D8D2C4));
  border-radius: .46rem;
  background: #fffaf1;
  color: var(--bm-ink, #1F2A24);
  min-height: 42px;
  padding: .35rem .48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  text-align: left;
}

.timeline-table-picker-summary__tables{
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  min-width: 0;
}

.timeline-table-picker-chip{
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border: 1px solid color-mix(in srgb, var(--bm-green, #2F3D34) 32%, var(--bm-border, #D8D2C4));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 8%, #fffaf1);
  color: var(--bm-green, #2F3D34);
  padding: .16rem .42rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.1;
}

.timeline-table-picker-chip small{
  color: var(--bm-muted, #6F766F);
  font-size: .66rem;
  font-weight: 700;
}

.timeline-table-picker-empty{
  color: var(--bm-muted, #6F766F);
  font-size: .78rem;
  font-weight: 600;
}

.timeline-table-picker-screen{
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, #fffaf1 0%, var(--bm-linen, #F7F3EA) 100%);
}

.timeline-table-picker-screen__head{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding: .75rem;
  border-bottom: 1px solid var(--bm-border, #D8D2C4);
}

.timeline-table-picker-screen__head strong{
  font-size: .9rem;
  color: var(--bm-ink, #1F2A24);
}

.timeline-table-picker-screen__head .btn:last-child{
  justify-self: end;
}

.timeline-table-picker-screen__body{
  min-height: 0;
  overflow-y: auto;
  padding: .75rem;
}

.timeline-table-picker-summary + .timeline-table-section{
  margin-top: .5rem;
}

.timeline-table-section + .timeline-table-section {
  margin-top: .5rem;
}

.timeline-table-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
}

.timeline-table-section__title {
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bm-muted, #6F766F);
}

.timeline-table-selectall {
  border: 1px solid var(--bm-border, #D8D2C4);
  background: #fffaf1;
  color: var(--bm-green, #2F3D34);
  border-radius: 999px;
  padding: .1rem .38rem;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.timeline-table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .25rem;
}

.timeline-color-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .26rem;
}

.timeline-color-chip {
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: 999px;
  height: 24px;
  width: 100%;
  background: var(--chip, #4b5563);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.timeline-color-chip.is-selected {
  border-color: var(--bm-green, #2F3D34);
  transform: scale(1.08);
  box-shadow:
    0 0 0 2px #fffaf1 inset,
    0 0 0 2px var(--bm-green, #2F3D34);
}

.timeline-table-tile {
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .4rem;
  background: #fffaf1;
  padding: .22rem .28rem .36rem;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  position: relative;
}

.timeline-table-tile__name {
  font-weight: 600;
  font-size: .7rem;
  color: var(--bm-ink, #1F2A24);
}

.timeline-table-tile__pax {
  font-size: .64rem;
  color: var(--bm-muted, #6F766F);
}

.timeline-table-tile__line {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--bm-sage, #7D877E);
}

.timeline-table-tile.is-selected {
  border-color: var(--bm-green, #2F3D34);
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, #fffaf1);
}

.timeline-table-tile.is-full {
  border-color: color-mix(in srgb, var(--bm-wine, #8D4A43) 58%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, var(--bm-wine, #8D4A43) 10%, #fffaf1);
}

.timeline-table-tile.is-full .timeline-table-tile__line {
  background: var(--bm-wine, #8D4A43);
}

.timeline-table-tile.is-limited {
  border-color: color-mix(in srgb, #D4882A 58%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, #D4882A 10%, #fffaf1);
}

.timeline-table-tile.is-limited .timeline-table-tile__line {
  background: #D4882A;
}

.timeline-table-tile.is-free .timeline-table-tile__line {
  background: var(--bm-green, #2F3D34);
}

.timeline-table-tile.is-offline {
  border-color: color-mix(in srgb, #6b7280 54%, var(--bm-border, #D8D2C4));
  background: color-mix(in srgb, #6b7280 10%, #fffaf1);
  cursor: pointer;
  opacity: .72;
}

.timeline-table-tile:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.timeline-table-tile.is-offline .timeline-table-tile__line {
  background: #6b7280;
}

.timeline-table-tile.is-offline.is-selected {
  border-color: var(--bm-green, #2F3D34);
  background: color-mix(in srgb, var(--bm-green, #2F3D34) 10%, #fffaf1);
  opacity: 1;
}

.timeline-table-tile.is-offline.is-selected .timeline-table-tile__line {
  background: var(--bm-green, #2F3D34);
}

.timeline-guest-suggestions{
  border: 1px solid var(--bm-border, #D8D2C4);
  border-radius: .62rem;
  background: #fffaf1;
  box-shadow: 0 10px 20px rgba(31, 42, 36, .08);
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 0;
}

.timeline-guest-suggestion{
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--bm-border, #D8D2C4);
  background: transparent;
  text-align: left;
  padding: .45rem .58rem;
  display: grid;
  gap: .12rem;
  cursor: pointer;
}

.timeline-guest-suggestion:last-child{
  border-bottom: 0;
}

.timeline-guest-suggestion:hover{
  background: color-mix(in srgb, var(--bm-sage, #7D877E) 11%, var(--bm-linen, #F7F3EA));
}

.timeline-guest-suggestion__title{
  font-size: .84rem;
  font-weight: 700;
  color: var(--bm-ink, #1F2A24);
}

.timeline-guest-suggestion__meta{
  font-size: .75rem;
  color: var(--bm-muted, #6F766F);
}

@media (max-width: 991.98px) {
  :root {
    --label-w: 88px;
    --row-h: 26px;
    --slot-w: 24px;
  }

  body {
    overflow-x: hidden;
  }

  .app-shell,
  .app-shell > .flex-grow-1,
  .content,
  .content > .container-fluid {
    min-width: 0;
    max-width: 100vw;
  }

  .app-header--timeline .app-header__right{
    flex-wrap: nowrap;
  }

  .app-header--timeline{
    gap: .42rem;
    margin-bottom: .45rem;
    padding-block: .5rem;
  }

  .app-header--timeline .app-header__main{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
  }

  .app-header--timeline .app-header__left{
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    gap: .45rem;
    min-width: 0;
  }

  .app-header--timeline .app-header__mobile-menu{
    grid-column: 1;
  }

  .app-header--timeline .app-header__title{
    grid-column: 2;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .app-header--timeline .app-header__page-tools{
    min-width: 0;
  }

  .app-header--timeline .app-header__right{
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-header--timeline .app-header__right::-webkit-scrollbar{
    display: none;
  }

  .timeline-header-icons{
    width: 100%;
    justify-content: flex-start;
    gap: .35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .timeline-header-icons::-webkit-scrollbar{
    display: none;
  }

  .timeline-header-icons .app-header-icon,
  .timeline-header-view-toggle .btn{
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .timeline-topbar-nav{
    width: 100%;
    flex-wrap: nowrap;
    gap: .3rem;
    overflow: hidden;
  }

  .timeline-topbar-nav__icon{
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .timeline-topbar-nav__today{
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding-inline: .55rem;
  }

  .timeline-topbar-nav__date{
    width: 100%;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  .timeline-header-tools__row {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .05rem;
    scrollbar-width: none;
  }

  .timeline-header-tools__row::-webkit-scrollbar{
    display: none;
  }

  .timeline-header-tools__actions {
    width: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: .45rem;
    flex: 0 0 auto;
  }

  .timeline-header-tools__search-toggle{
    flex: 0 0 auto;
  }

  .timeline-mode-switch{
    min-height: 44px;
    gap: .45rem;
    padding: .32rem .45rem .32rem .7rem;
  }

  .timeline-mode-switch__label{
    font-size: .72rem;
  }

  .timeline-mode-switch__status{
    font-size: .62rem;
  }

  .timeline-mode-switch__track{
    width: 38px;
    height: 22px;
    padding: 3px;
  }

  .timeline-mode-switch__thumb{
    width: 16px;
    height: 16px;
  }

  .timeline-mode-switch__input:checked + .timeline-mode-switch__track .timeline-mode-switch__thumb{
    transform: translateX(16px);
  }

  .page-card--timeline{
    width: auto;
    max-width: calc(100vw - .7rem);
    overflow: hidden;
    margin-inline: .35rem !important;
    padding: .45rem !important;
    border-radius: .65rem !important;
  }

  .timeline-service-shell,
  .timeline-service-main,
  #timelineRoot,
  #timelineListView {
    min-width: 0;
    max-width: 100%;
  }

  .timeline-toolbar{
    margin-bottom: .35rem;
  }

  .timeline-summary{
    font-size: .82rem;
    line-height: 1.25;
  }

  .timetable{
    width: 100%;
    max-width: 100%;
    border-radius: .55rem;
    margin-bottom: 52px;
  }

  .tt-scroll{
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .tt-section-label{
    padding: 6px 7px;
    gap: 5px;
    font-size: .78rem;
  }

  .tt-label{
    padding-inline: 5px;
  }

  .tt-label .tbl{
    font-size: 11px;
  }

  .tt-label .pax{
    font-size: 9px;
  }

  .resv{
    border-radius: 6px;
    padding: 1px 3px;
  }

  .resv__main{
    gap: 4px;
  }

  .resv__covers{
    font-size: 12px;
  }

  .resv__name{
    font-size: 11px;
  }

  .resv__chips{
    gap: 2px;
  }

  .resv__dietary-icon,
  .resv__note-icon,
  .resv__meta-icon,
  .resv__svc-chip{
    width: 18px;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    border-radius: 3px;
  }

  .resv__agreed-chip{
    min-width: 38px;
    height: 18px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .timeline-fab {
    right: 14px;
    bottom: 72px;
    width: 50px;
    height: 50px;
  }

  .timeline-sticky-footer {
    padding: .45rem .6rem;
    gap: .5rem;
  }

  .timeline-day-memo {
    max-width: 62vw;
  }

  .timeline-service-shell.is-service-mode .timeline-service-notice {
    right: 10px;
    width: 220px;
    top: 72px;
    bottom: 54px;
  }

  .timeline-service-shell.is-service-mode .timeline-service-main {
    padding-right: 232px;
  }

  .timeline-composer {
    width: min(460px, 98vw);
  }

  .timeline-waitlist-drawer{
    width: min(420px, 98vw);
  }
}

@media (max-width: 480px) {
  :root {
    --label-w: 78px;
    --row-h: 24px;
    --slot-w: 22px;
  }

  .app-header--timeline{
    padding-block: .45rem;
  }

  .app-header--timeline .app-header__main{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
  }

  .app-header--timeline .app-header__left{
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    gap: .45rem;
  }

  .app-header--timeline .app-header__mobile-menu{
    grid-column: 1;
  }

  .app-header--timeline .app-header__title{
    grid-column: 2;
    width: 100%;
  }

  .timeline-topbar-nav{
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px;
    gap: .22rem;
  }

  #timelineDateWrap{
    min-width: 0;
  }

  .timeline-topbar-nav__today{
    width: 44px;
    padding-inline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .timeline-topbar-nav__today-label{
    display: none;
  }

  .timeline-topbar-nav__date{
    max-width: 34vw;
  }

  .timeline-header-tools{
    gap: .4rem;
  }

  .timeline-covers-picker{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .timeline-covers-picker__label{
    min-width: 0;
  }

  .timeline-covers-picker__quick{
    justify-content: flex-start;
    overflow: visible;
  }

  .timeline-header-tools__actions{
    flex-direction: row;
    align-items: center;
  }

  .timeline-mode-switch{
    width: auto;
    justify-content: flex-start;
  }

  .timeline-mode-switch__copy{
    display: none;
  }

  .timeline-list-filters{
    padding: .45rem;
    gap: .35rem;
    border-radius: .65rem;
    overflow: visible;
    flex-wrap: wrap;
  }

  .timeline-list-filters__option{
    flex: 0 0 auto;
    padding: .28rem .55rem;
    font-size: .78rem;
  }

  .timeline-sticky-footer{
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
  }

  .timeline-day-memo{
    max-width: 100%;
  }

  .timeline-footer-right{
    margin-left: 0;
    justify-content: space-between;
    width: 100%;
    gap: .5rem;
  }

  .timeline-footer-summary{
    gap: .45rem;
    font-size: .8rem;
    flex-wrap: wrap;
  }

  .timeline-waitlist-drawer{
    width: 100vw;
  }

  .timeline-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-color-palette {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .timeline-list-row{
    grid-template-columns: 1fr;
  }

  .timeline-list-slot{
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .timeline-service-shell.is-service-mode{
    display: block;
  }

  .timeline-service-notice__card{
    position: static;
    width: 100%;
    top: auto;
    height: auto;
    min-height: 180px;
    max-height: 50vh;
  }

  .timeline-service-shell.is-service-mode .timeline-service-main{
    padding-right: 0;
  }

  .timeline-service-shell.is-service-mode .timeline-service-notice{
    position: fixed;
    top: 72px;
    bottom: 54px;
    right: 10px;
    width: 280px;
  }

  body.timeline-service-mode .app-header{
    position: fixed;
    padding: .6rem .75rem;
    background: rgba(247,243,234,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(216, 210, 196, .92);
    border-radius: 0;
  }

  body.timeline-service-mode .timeline-composer{
    top: 0;
    height: 100vh;
  }

  body.timeline-service-mode .page-card{
    margin-top: 0;
  }

  body.timeline-service-mode .content{
    padding-top: 64px;
  }
}

@media (max-width: 480px) {
  .timeline-list{
    border-radius: .55rem;
    margin-bottom: 52px;
  }

  .timeline-list-row{
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .timeline-list-slot{
    align-items: flex-start;
    justify-content: center;
    padding: .52rem .25rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    font-size: .78rem;
    line-height: 1.1;
  }

  .timeline-list-items{
    padding: .3rem;
    gap: .3rem;
  }

  .timeline-list-item{
    grid-template-columns: minmax(0, 1fr);
    gap: .38rem;
    padding: .48rem .5rem;
    border-radius: .45rem;
    font-size: .8rem;
  }

  .timeline-list-item__top{
    gap: .25rem .35rem;
  }

  .timeline-list-item__name{
    font-size: .88rem;
    line-height: 1.15;
  }

  .timeline-list-item__covers,
  .timeline-list-chip,
  .timeline-list-status__toggle{
    font-size: .68rem;
  }

  .timeline-list-chip{
    min-height: 1.35rem;
    padding: .12rem .38rem;
  }

  .timeline-list-item__note{
    font-size: .72rem;
    line-height: 1.25;
  }

  .timeline-list-item__table-col{
    display: none;
  }

  .resv__svc-chip.has-deposit{
    min-width: 18px;
    padding-inline: 4px;
  }

  .timeline-list-item__actions{
    grid-column: auto;
  }
}
