/* The Rookery — wave266-booking (2026-10-30): the activity composer's
 * Start / End fields and the hour-positioned day view beside it.
 * Loaded immediately after dashboard-activities.css. dashboard.css is
 * not touched: the rail keeps .dac-grid's 258px column, and the old
 * .dac-tl-* text rows are simply no longer drawn. Colours ride the
 * portal's --ds-* tokens with plain fallbacks. */

/* ---------- the time row: Date · Start – End · Duration ---------- */
.dac-row3.dbk-row {
  grid-template-columns: minmax(128px, 1.15fr) minmax(108px, 1fr) auto minmax(108px, 1fr) minmax(88px, .8fr);
  gap: 10px; align-items: end;
}
@media (max-width: 640px) {
  .dac-row3.dbk-row { grid-template-columns: 1fr auto 1fr; }
  .dac-row3.dbk-row > label:first-child, .dac-row3.dbk-row > label:last-of-type { grid-column: 1 / -1; }
}
.dbk-dash { padding-bottom: 9px; color: var(--ds-muted, var(--muted, #6b7280)); }
.dbk-combo { position: relative; }
.fx-overlay .dac-form .dbk-row .dbk-combo .dbk-input { width: 100%; padding-right: 26px; font-variant-numeric: tabular-nums; }
.fx-overlay .dac-form .dbk-row .dbk-combo .dbk-input.is-bad { border-color: var(--ds-bad-ink, #b3261e); }
.dbk-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 5px; color: var(--ds-muted, var(--muted, #6b7280)); border-radius: 4px; }
.dbk-x:hover { color: var(--ds-navy, #13294b); background: var(--ds-tint, #eef1f6); }
.dbk-input:placeholder-shown + .dbk-x { display: none; }
.dbk-list { position: absolute; z-index: 40; left: 0; top: calc(100% + 4px); min-width: 100%; width: 190px; max-height: 248px;
  overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--ds-card, #fff);
  border: 1px solid var(--ds-line, var(--line, #e2ded2)); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 34, 51, .18); }
.dbk-list.hidden { display: none; }
.dbk-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 7px;
  font-size: 13.5px; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dbk-opt.is-active { background: var(--ds-tint, #eef1f6); }
.dbk-opt.is-sel { background: var(--dbk-draft, #3f3d8f); color: #fff; font-weight: 600; }
.dbk-tick { font-weight: 700; }
.dbk-msg { margin: 4px 0 2px; font-size: 12.5px; color: var(--ds-bad-ink, #b3261e); }
.dbk-msg.hidden { display: none; }

/* ---------- the day view ---------- */
.dbk-day { --dbk-gutter: 46px; font-size: 12px; }
.dbk-banner { line-height: 1.4; }
.dbk-note { margin: 0 0 6px; font-size: 12px; }
.dbk-allday { display: grid; gap: 3px; padding: 0 0 6px var(--dbk-gutter); margin-bottom: 4px;
  border-bottom: 1px solid var(--ds-line, var(--line, #e2ded2)); }
.dbk-ad { padding: 3px 7px; border-radius: 5px; background: var(--ds-tint, #eef1f6); border-left: 3px solid var(--ds-navy, #13294b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbk-ad span { color: var(--ds-muted, var(--muted, #6b7280)); }
.dbk-scroll { overflow-y: auto; overscroll-behavior: contain; position: relative; }
.dbk-grid { position: relative; }
.dbk-hr { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ds-line, var(--line, #ebe7dd)); }
.dbk-hr span { position: absolute; left: 0; top: -7px; width: calc(var(--dbk-gutter) - 6px); text-align: right; font-size: 10.5px;
  line-height: 14px; color: var(--ds-muted, var(--muted, #6b7280)); background: var(--ds-card, #fff); padding-right: 4px; }
.dbk-hr:first-child span { top: 0; }
.dbk-area { position: absolute; top: 0; bottom: 0; left: var(--dbk-gutter); right: 2px; }

.dbk-blk { position: absolute; box-sizing: border-box; overflow: hidden; padding: 2px 6px; border-radius: 5px;
  background: var(--ds-tint, #eef1f6); color: var(--ds-ink, #1c2533); border-left: 3px solid var(--ds-navy, #13294b);
  line-height: 1.25; }
.dbk-blk-t, .dbk-blk-r { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbk-blk-t { font-weight: 700; }
.dbk-blk-r { font-size: 11px; opacity: .8; font-variant-numeric: tabular-nums; }
.dbk-blk.is-short .dbk-blk-r { display: none; }
.dbk-blk.is-short { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.dbk-blk.is-short .dbk-blk-t { line-height: 1.1; }
.dbk-blk.is-mirror { border-left-color: var(--ds-muted, #6b7280); }
.dbk-blk.is-done, .dbk-ad.is-done { opacity: .55; }
.dbk-blk.is-free, .dbk-ad.is-free { background: transparent; border: 1px dashed var(--ds-line-strong, #a9b3c2); border-left-width: 3px; }
.dbk-blk.is-self, .dbk-ad.is-self { background: transparent; border: 1px dashed var(--ds-navy, #13294b); opacity: .7; }

/* the draft — not saved yet: Rookery navy/violet, edged in dashes */
.dbk-blk.is-draft { z-index: 3; background: var(--dbk-draft, #3f3d8f); color: #fff; border: 0;
  outline: 2px dashed var(--dbk-draft, #3f3d8f); outline-offset: 2px; box-shadow: 0 2px 8px rgba(30, 27, 90, .3); }
.dbk-blk.is-draft .dbk-blk-r { opacity: .9; }
.dbk-blk.is-draft.is-free { background: var(--ds-card, #fff); color: var(--dbk-draft-ink, #3f3d8f); outline: 0;
  border: 1.5px dashed var(--dbk-draft, #3f3d8f); box-shadow: none; }

/* a conflict, seen: both sides wear the red edge and tint */
.dbk-blk.is-clash, .dbk-ad.is-clash { background: var(--ds-bad-bg, #fbeae6); color: var(--ds-bad-ink, #8a2c13);
  border-left: 3px solid var(--ds-bad-ink, #b3261e); box-shadow: inset 0 0 0 1px #efc9bd; }
.dbk-blk.is-draft.is-clash { background: var(--dbk-draft, #3f3d8f); color: #fff; border: 0;
  outline: 2px dashed var(--ds-bad-ink, #b3261e); box-shadow: inset 3px 0 0 var(--ds-bad-ink, #e5484d), 0 2px 8px rgba(30, 27, 90, .3); }

/* now */
.dbk-now { position: absolute; left: -4px; right: 0; height: 0; border-top: 2px solid #d93025; z-index: 4; pointer-events: none; }
.dbk-now i { position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #d93025; }

/* the Navy appearance: the draft lifts a shade so it reads on the dark card */
body.skin-navy .dbk-day, body.skin-navy .dbk-list { --dbk-draft: #6c63d9; --dbk-draft-ink: #b9b4ff; }

/* wave317-doors (2026-10-31): the draft block drags. The body moves it,
 * the bottom edge (.dbk-grip) stretches it. touch-action: none on the
 * block alone — a finger on it drags; a finger anywhere else on the
 * rail still scrolls the day. */
.dbk-blk.is-draft { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dbk-blk.is-draft:active { cursor: grabbing; }
/* the grip is the bottom 30% of the block, 5–10px: a 30-minute block is
 * only 20px tall, so a fixed-height grip would swallow its body */
.dbk-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; min-height: 5px; max-height: 10px; cursor: ns-resize; touch-action: none; }
.dbk-grip::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 22px; margin-left: -11px; height: 2px;
  border-radius: 2px; background: currentColor; opacity: .55; }
