.db {
  --db-surface: var(--ui-surface, #fffefa);
  --db-bg: var(--ui-bg, #f6f5f1);
  --db-text: var(--ui-text, #262724);
  --db-muted: var(--ui-muted, #66665e);
  --db-line: var(--ui-line, #dddcd3);
  --db-accent: var(--ui-accent, var(--brand, #982f21));
  --db-fill: var(--ui-fill, var(--brand, #982f21));
  --db-soft: var(--ui-soft, #efeee8);
  --db-tint: var(--ui-tint, #faeee8);
  display: grid;
  gap: clamp(16px, 2vw, 29px);
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  color: var(--db-text);
  font-variant-numeric: tabular-nums;
}
.db *, .db *::before, .db *::after { box-sizing: border-box; }
.db button { font-family: inherit; cursor: pointer; }
.db button:focus-visible { outline: 3px solid var(--db-accent); outline-offset: -3px; }
.db .ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.db-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  border-block: 1px solid var(--db-line);
  align-items: stretch;
  background: var(--db-surface);
}
.db-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: clamp(12px, 1.3vw, 19px);
  padding: clamp(20px,2.6vw,40px);
}
.db-date, .db-member, .db-priority-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--db-muted);
  font-size: .85rem;
  line-height: 1.4;
  font-weight: 600;
}
.db-date .ico { width: 16px; height: 16px; color: var(--db-accent); }
.db-hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 4.55vw, 4.7rem);
  line-height: 1;
  letter-spacing: -.057em;
  color: var(--db-text);
  font-weight: 710;
}
.db-venue { position: relative; overflow: hidden; margin: 0; min-width: 0; background: #342a20; }
.db-venue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 55%; }
.db-venue::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #18120adb); }
.db-venue figcaption { position: absolute; z-index: 1; inset: auto 14px 13px; display:flex; align-items: center; gap: 5px; color: white; font-weight: 620; font-size: .8rem; }
.db-venue figcaption .ico { width: 15px; height: 15px; }
.db-filters { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--db-soft); padding: 3px; max-width: 100%; }
.db-filters button { padding: 5px 10px; min-height: 34px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--db-muted); font-weight: 620; font-size: .8rem; line-height: 1.25; }
.db-filters button:hover { color: var(--db-text); }
.db-filters button[aria-pressed="true"] { background: var(--db-surface); color: var(--db-accent); border-color: var(--db-line); }
.db-member { color: var(--db-accent); }
.db-priority, .db-clear, .db .peoplePunch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--db-line);
  border-inline-start: 4px solid var(--db-accent);
  border-radius: 0;
  box-shadow: none;
  background: var(--db-surface);
  color: var(--db-text);
}
.db-priority-copy { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.db-priority-label { color: var(--db-accent); font-weight: 700; }
.db-priority-label .ico { width: 17px; height: 17px; }
.db-priority-copy strong, .db .peoplePunch h2 { color: var(--db-text); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 670; line-height: 1.24; letter-spacing: -.035em; }
.db-priority-copy small, .db .peoplePunch p, .db .peoplePunch small { font-size: .85rem; color: var(--db-muted); }
.db-primary, .db .peoplePunchControl .btn {
  display: inline-flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 0;
  border-radius: 5px;
  background: var(--db-fill);
  color: white;
  font-size: .95rem;
  font-weight: 670;
  min-height: 46px;
}
.db-primary:hover, .db .peoplePunchControl .btn:hover { background: color-mix(in srgb, var(--db-fill) 87%, black); }
.db .peoplePunchControl .btn { min-height: 58px; font-size: 1.05rem; padding-inline: 24px; }
.db .peoplePunch h2 { margin: 2px 0 5px; }
.db .peoplePunch p { margin: 0 0 2px; }
.db-clear { justify-content: flex-start; color: var(--ui-success, #31704d); }
.db-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(125px,100%),1fr)); gap: 0; border: 1px solid var(--db-line); background: var(--db-surface); }
.db-metric { display: grid; align-content: start; min-width: 0; gap: 5px; text-align: left; border: 0; border-radius: 0; color: var(--db-text); background: transparent; padding: clamp(14px, 1.75vw, 24px); }
.db-metric + .db-metric { border-inline-start: 1px solid var(--db-line); }
.db-metric:hover, .db-booking:hover, .db-queue-row:hover, .db-chart-book:hover, button.db-person:hover { background: var(--db-soft); }
.db-metric-head { display: flex; align-items: center; gap: 7px; color: var(--db-text); font-weight: 630; font-size: .86rem; line-height: 1.34; }
.db-kicon { display: inline-flex; color: var(--db-accent); }
.db-kicon .ico { width: 17px; height: 17px; }
.db-metric > b { font-size: clamp(1.7rem, 2.8vw, 3rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 670; }
.db-metric > small, .db-row-main small, .db-person small, .db-empty { color: var(--db-muted); font-size: .8rem; line-height: 1.42; }
.db-split, .db-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px,1.6vw,23px); align-items: start; min-width: 0; }
.db-split > :only-child, .db-charts > :only-child { grid-column: 1/-1; }
.db-panel { min-width: 0; padding: clamp(16px,1.8vw,25px); background: var(--db-surface); border: 1px solid var(--db-line); color: var(--db-text); }
.db-panel > header { display: flex; min-height: 39px; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 9px; }
.db-panel h2 { margin: 0; color: var(--db-text); font-size: clamp(1.12rem, 1.6vw, 1.45rem); font-weight: 680; letter-spacing: -.038em; line-height: 1.25; }
.db-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px; min-height: 34px; border: 0; background: transparent; color: var(--db-accent); font-size: .83rem; font-weight: 640; }
.db-link:hover { text-decoration: underline; }
.db-link .ico { width: 15px; height: 15px; }
.db-count, .db-tag { padding: 3px 6px; background: var(--db-soft); color: var(--db-muted); font-size: .73rem; font-weight: 650; line-height: 1.3; }
.db-queue-row, .db-booking, .db-chart-book, .db-person {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
  min-height: 57px;
  padding: 9px 2px;
  border: 0;
  border-top: 1px solid var(--db-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--db-text);
}
.db-queue-row > .ico:last-child, .db-booking > .ico:last-child, .db-chart-book > .ico:last-child { width: 14px; height: 14px; color: var(--db-muted); }
.db-row-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; background: var(--db-soft); color: var(--db-text); }
.db-row-main, .db-person > span:nth-child(2) { display: grid; flex:1; min-width: 0; gap: 2px; }
.db-row-main b, .db-person b { font-size: .93rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.db-tag { margin-inline-start: auto; flex: none; }
.db-booking-when { display: grid; min-width: 3.4rem; gap: 2px; }
.db-booking-when small { font-size: .75rem; color: var(--db-muted); }
.db-time { color: var(--db-accent); font-weight: 700; font-size: 1.03rem; line-height: 1.2; letter-spacing: -.025em; }
.db-guests { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--db-muted); }
.db-guests .ico { width: 15px; height: 15px; }
.db-people { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,175px),1fr)); gap: 0 12px; }
.db-initial { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 50%; color: var(--db-accent); background: var(--db-tint); font-size: .72rem; font-weight: 700; }
.db-person i { width: 8px; height: 8px; margin-inline-end: 4px; border-radius: 50%; background: var(--ui-success,#31704d); }
.db-empty { margin: 6px 0; }
.db-charts { align-items: stretch; }
.db-charts .db-panel { display: flex; flex-direction: column; }
.db-chart-unit,.db-hour-legend,.db-chart-note,.db-bars>b { font-size: .81rem; color: var(--db-muted); }
.db-hour-scroll { overflow-x: auto; max-width: 100%; }
.db-hours { display: grid; grid-template-columns: repeat(var(--cols), minmax(20px,1fr)); min-width: calc(var(--cols)*25px); padding: 0 2px; }
.db-hour { display: flex; flex-direction: column; border: 0; background: transparent; min-width: 0; padding: 0; text-align: center; align-items: stretch; color: var(--db-muted); }
.db-hour small { font-size: .74rem; padding: 5px 0 1px; }
.db-column { display: flex; align-items: end; justify-content: center; height: 116px; border-bottom: 1px solid var(--db-line); padding-top: 20px; background: repeating-linear-gradient(to top,transparent 0,transparent 30px,var(--db-line) 31px,transparent 32px); }
.db-column-value { display: block; height: var(--level); width: clamp(9px,44%,28px); position: relative; background: var(--db-accent); }
.db-column-value b { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; font-size: .74rem; color: var(--db-text); }
.db-hour:hover .db-column,.db-hour[aria-pressed=true] .db-column { background-color: var(--db-tint); }
.db-hour[aria-pressed=true] small { font-weight: 750; text-decoration: underline; color: var(--db-accent); }
.db-chart-note { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--db-line); padding-top: 10px; margin-top: auto; min-height: 38px; }
.db-hour-scroll+.db-chart-note { margin-top: 12px; }
.db-chart-book { min-height: 40px; font-size: .83rem; }
.db-chart-book .ico { margin-left: auto; }
.db-hour-legend { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.db-hour-legend span { display: flex; align-items: center; gap: 5px; }
.db-hour-legend i { width: 13px; height: 9px; }
.db-plan-swatch { border: 1px solid var(--db-accent); background: var(--db-tint); }
.db-actual-swatch { background: var(--db-accent); }
.db-bars { margin: 5px 0 9px; }
.db-bars>b { display: block; color: var(--db-text); }
.db-hours-pair { display: grid; grid-template-columns: minmax(75px,max-content) minmax(0,1fr) minmax(53px,max-content); align-items: center; gap: 8px; line-height: 1.3; }
.db-hours-pair > span { font-size: .77rem; color: var(--db-muted); }
.db-hours-pair strong { font-size: .77rem; text-align: right; }
.db-hour-track { height: 7px; background: var(--db-soft); }
.db-hour-track i { display: block; height: 100%; }
.db-hour-track i[style="width:0%"] { border: 0; }
.db-period button { font-size: .76rem; padding: 4px 7px; }
@media(max-width:1150px) and (min-width:741px) { .db-tag { display: none; } }
@media(max-width:740px) {
  .db { gap: 15px; }
  .db-hero { grid-template-columns: minmax(0,1.7fr) minmax(95px,1fr); }
  .db-hero-inner { padding: 18px 14px; gap: 9px; }
  .db-hero h1 { font-size: clamp(2.15rem, 7.3vw, 3.1rem); }
  .db-venue figcaption { inset: auto 8px 8px; font-size: .73rem; line-height: 1.2; }
  .db-venue figcaption .ico { width: 12px; height: 12px; }
  .db-date { font-size: .75rem; gap: 5px; }
  .db-date .ico { width: 13px; height: 13px; }
  .db-hero .db-filters { gap: 0; padding: 1px; }
  .db-hero .db-filters button { padding: 3px 6px; min-height: 35px; }
  .db-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .db-metric:nth-child(odd) { border-inline-start: 0; }
  .db-metric:nth-child(n+3) { border-top: 1px solid var(--db-line); }
  .db-split, .db-charts { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:540px) {
  .db-priority, .db .peoplePunch { align-items: stretch; flex-direction: column; gap: 12px; }
  .db .peoplePunchControl .btn { width: 100%; }
  .db-hero { grid-template-columns: minmax(0,1.8fr) minmax(74px,.8fr); }
  .db-filters button { font-size: .74rem; }
  .db-priority .db-primary { align-self: flex-start; min-height: 44px; }
  .db-metric { padding: 13px; }
  .db-tag { display: none; }
  .db-column { height: 98px; }
}
@media(max-width:360px) {
  .db-hero { grid-template-columns: minmax(0,2.5fr) minmax(57px,.75fr); }
  .db-hero-inner { padding: 14px 10px; }
  .db-venue figcaption .ico { display: none; }
}

/* A venue logo replaces the decorative brand watermark without obscuring the overview. */
.db-hero-person {display:flex;align-items:center;gap:12px;min-width:0;}
.db-hero-person>.oa-avatar {--oa-size:48px;}
.db-hero-person>span:last-child {min-width:0;overflow-wrap:anywhere;}
body[data-surface="system"] .db-hero-person .oa-avatar>.orel-presence-dot {border-color:var(--hero-bg,#28282b);}
body[data-surface="system"] .db.unified-home .hero.has-venue-logo {
  grid-template-columns: minmax(0,1fr) minmax(125px,26%);
  gap: 14px;
  align-items: center;
  padding-right: clamp(20px,2.3vw,34px);
}
body[data-surface="system"] .db.unified-home .hero.has-venue-logo .hero-copy { max-width: none; }
body[data-surface="system"] .db.unified-home .hero .hero-emblem.venue-logo {
  position: static; display: grid; place-items: center; width: 100%; min-width: 0;
  padding: 17px; border-radius: 14px; background: #f7f7f7; opacity: 1;
  align-self: center; justify-self: end;
}
body[data-surface="system"] .db.unified-home .hero-emblem.venue-logo img { display: block; width: 100%; height: 135px; object-fit: contain; filter: none; }
@media (max-width:580px) {
  body[data-surface="system"] .db.unified-home .hero.has-venue-logo { grid-template-columns: minmax(0,1fr) 86px; gap: 2px; padding-right: 16px; }
  body[data-surface="system"] .db.unified-home .hero.has-venue-logo h1 { font-size: clamp(31px,8.1vw,43px); }
  body[data-surface="system"] .db.unified-home .hero .hero-emblem.venue-logo { padding: 10px; border-radius: 10px; }
  body[data-surface="system"] .db.unified-home .hero-emblem.venue-logo img { height: 86px; }
}
