@layer components {
  /* ── Cabins timeline ──────────────────────────────────────────────
     One Gantt: an AWAITING band on top, cabin rows below (each holding
     capacity-many bed slots), a shared horizontal axis where position =
     dates and the gathering window itself is collapsed to a fixed band.
     Drag a bar straight down onto a cabin row to place it. */

  .cabin-timeline {
    --cabin-label-w: 172px;
    position: relative;
    margin-top: 0;
    max-width: 100%;
  }

  .cabin-tl-scroll {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .cabin-tl-grid {
    position: relative;     /* anchor for the full-height "today" marker */
    min-width: calc(var(--cabin-label-w) + var(--cabin-track-w, 480px));
  }

  /* ── Rows ─────────────────────────────────────────────────────── */
  .cabin-tl-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
  .cabin-tl-row:last-child { border-bottom: none; }

  .cabin-tl-label {
    flex: 0 0 var(--cabin-label-w);
    width: var(--cabin-label-w);
    display: flex;
    align-items: flex-start;       /* align with the first bar slot, not the row middle */
    gap: 9px;
    padding: 8px 14px 8px 2px;
    box-sizing: border-box;
    /* stay pinned to the left edge while the timeline scrolls horizontally */
    position: sticky;
    left: 0;
    z-index: 25;
    background: var(--paper);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
  }
  .cabin-tl-next, .cabin-tl-today-btn {
    align-self: flex-start;
    font-size: 11px; font-weight: var(--weight-semibold);
    color: var(--slate);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--slate) 40%, transparent);
    border-radius: 999px;
    padding: 2px 9px;
    cursor: pointer;
    transition: background 0.12s ease;
  }
  .cabin-tl-next { margin-top: 6px; }
  .cabin-tl-next:hover, .cabin-tl-today-btn:hover { background: color-mix(in srgb, var(--slate) 14%, #fff); }
  .cabin-tl-toolbar { margin: 0 0 8px; }
  .cabin-tl-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 16px; padding: 0 4px; margin-left: 5px;
    border-radius: 999px; background: var(--slate); color: #fff;
    font-family: var(--sans); font-size: 10px; font-weight: var(--weight-bold);
    vertical-align: middle;
  }
  /* "today" marker — one pink playhead down the whole master timeline:
     a flag pinned at the top of the axis header and a line that runs
     through every row below it (a single element spanning .cabin-tl-grid,
     so there are no seams between the axis, the AWAITING band and the
     cabin rows). The sticky cabin-name column (z-index 25) paints over
     it once the timeline is scrolled right. */
  .cabin-tl-today {
    position: absolute; top: 0; bottom: 0;
    border-left: 2px solid var(--pink);
    display: flex; align-items: flex-start;
    pointer-events: none; z-index: 2;
  }
  .cabin-tl-today span {
    font-size: var(--cap-xs, 9px); letter-spacing: var(--tracking-cap-tight); text-transform: uppercase;
    color: #fff; font-weight: var(--weight-bold);
    background: var(--pink); padding: 1px 4px; border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    white-space: nowrap;
  }
  .cabin-tl-today-line {
    position: absolute; top: 0; bottom: 0;
    border-left: 2px solid rgba(255, 0, 199, 0.30);
    pointer-events: none;
  }
  /* Sticky label column reads as the page itself (the warm cotton paper),
     so it disappears into the background as the timeline scrolls under it —
     both on the clipboard and on the Manage master view. */
  .cabin-tl-row--awaiting .cabin-tl-label {
    background: color-mix(in srgb, var(--slate) 12%, var(--paper));
    align-items: center;   /* "Yet to assign" sits centered in the band */
  }
  .cabin-tl-row--axis .cabin-tl-axis-label { background: var(--paper); align-items: center; }
  .cabin-tl-label-body { min-width: 0; flex: 1; }

  .cabin-tl-name {
    font-family: var(--display);
    font-weight: var(--weight-semibold);
    font-size: 14px;
    line-height: 1.25;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cabin-tl-name a { color: inherit; text-decoration: none; }
  .cabin-tl-name a:hover { color: var(--slate-hover); text-decoration: underline; }
  .cabin-tl-num { color: var(--ink-faint); font-weight: var(--weight-normal); font-size: 11px; }
  .cabin-tl-sub { font-size: 11px; margin-top: 2px; }

  .cabin-tl-meter { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; }
  .cabin-tl-cap { font-size: 11px; white-space: nowrap; }
  .cabin-tl-cap.is-full { color: var(--ink-soft); }

  .cabin-pips {
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1;
  }
  .cabin-pips-filled { color: var(--pink); }
  .cabin-pips-open   { color: var(--ink-faint); }
  .cabin-pips--remote  { color: var(--ink-faint); font-size: 13px; letter-spacing: 0; }
  .cabin-pips--remote  { color: var(--ink-faint); font-size: 13px; letter-spacing: 0; }

  .cabin-tl-thumb {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--paper-edge);
    background: var(--paper-warm-2);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    display: block;
  }
  .cabin-tl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cabin-tl-thumb:hover { border-color: var(--ink-faint); }

  /* ── Track (the time axis area) ───────────────────────────────── */
  .cabin-tl-track {
    flex: 0 0 var(--cabin-track-w, 480px);
    width: var(--cabin-track-w, 480px);
    position: relative;
    align-self: stretch;
    /* horizontal lane dividers, one per bed slot */
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--cabin-lane-h) - 1px),
      rgba(0, 0, 0, 0.05) calc(var(--cabin-lane-h) - 1px),
      rgba(0, 0, 0, 0.05) var(--cabin-lane-h)
    );
  }
  .cabin-tl-row--cabin .cabin-tl-track,
  .cabin-tl-awaiting-track { min-height: 48px; }

  /* the collapsed gathering window, drawn as a warmer band with dashed edges */
  .cabin-tl-track::before {
    content: "";
    position: absolute;
    left: var(--core-left, 0);
    width: var(--core-w, 0);
    top: 0; bottom: 0;
    background: rgba(79, 109, 122, 0.07);
    border-left: 1px dashed rgba(79, 109, 122, 0.35);
    border-right: 1px dashed rgba(79, 109, 122, 0.35);
    pointer-events: none;
  }

  .cabin-tl-droptarget.is-dragover {
    background-color: rgba(74, 124, 78, 0.10);
    box-shadow: inset 0 0 0 2px var(--arrive);
  }
  .cabin-tl-droptarget.is-dragover-bad {
    background-color: rgba(196, 68, 68, 0.10);
    box-shadow: inset 0 0 0 2px var(--required);
  }

  /* ── Axis header ──────────────────────────────────────────────── */
  .cabin-tl-row--axis { border-bottom: 1px solid rgba(0,0,0,0.12); }
  .cabin-tl-axis-label { flex: 0 0 var(--cabin-label-w); width: var(--cabin-label-w); }
  .cabin-tl-axis-track { background-image: none; }   /* height set inline (grows with stacked bands) */
  .cabin-tl-axis-track::before { background: rgba(79, 109, 122, 0.07); border-color: rgba(79,109,122,0.35); }
  .cabin-tl-daytick, .cabin-tl-core-tick {
    position: absolute;
    top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--cap-sm, 10px);
    letter-spacing: var(--tracking-cap-tight);
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .cabin-tl-core-tick { color: var(--slate); font-weight: var(--weight-bold); }

  /* ── AWAITING band ────────────────────────────────────────────── */
  .cabin-tl-row--awaiting {
    background: color-mix(in srgb, var(--slate) 12%, var(--paper));
    border-bottom: 2px solid rgba(79, 109, 122, 0.22);
  }
  .cabin-tl-row--awaiting .cabin-tl-name { font-family: var(--display); color: var(--slate); }
  .cabin-tl-awaiting-track {
    background-image: none;
    height: calc(var(--lanes, 1) * var(--cabin-lane-h));   /* grows to fit everyone unplaced */
  }

  /* ── Section divider (Remote cabins) ──────────────────────────── */
  /* Full-width divider row; the heading text lives in an inline-block span
     that's sticky-left, so it stays put while the timeline scrolls (a
     full-width div can't stick — it has no slack inside its container). */
  .cabin-tl-section {
    padding: 14px 0 6px 2px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    /* Own background, above the "today" playhead — the heading text sits on a
       solid surface instead of having the pink line bleed through it. */
    position: relative;
    z-index: 24;
    background: var(--paper);
  }
  .cabin-tl-section-label {
    display: inline-block;
    position: sticky;
    left: 2px;
    z-index: 1;
    font-size: var(--cap-sm, 10px);
    letter-spacing: var(--tracking-cap-tight);
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: var(--weight-bold);
  }
  .cabin-tl-row--cabin.is-remote .cabin-tl-track { background-image: none; }

  .cabin-tl-empty-hint {
    position: absolute;
    left: var(--core-left, 50%);
    width: var(--core-w, auto);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 11px;
    font-style: normal;
    color: var(--ink-faint);
    pointer-events: none;
  }
  .cabin-tl-awaiting-track .cabin-tl-empty-hint { left: 0; right: 0; width: auto; }

  /* ── Bars ─────────────────────────────────────────────────────── */
  .cabin-bar {
    position: absolute;
    height: calc(var(--cabin-lane-h) - 5px);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 7px 0 4px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid rgba(255, 0, 199, 0.30);
    border-left: 3px solid var(--bar-accent, var(--pink));
    background: rgba(255, 0, 199, 0.08);
    box-shadow: none;
    font-size: 12px;
    color: var(--ink);
    cursor: grab;
    user-select: none;
    overflow: hidden;
    touch-action: none;
  }
  .cabin-bar:focus-visible { outline: 2px solid var(--slate); outline-offset: 1px; }
  .cabin-bar.is-dragging { opacity: 0.35; }
  .cabin-bar--awaiting {
    background: transparent;
    border: 1px solid var(--ink-faint);
    border-left: 1px solid var(--ink-faint);
    color: var(--ink-soft);
  }
  .cabin-bar--provisional {
    border-left-style: dashed;
    background-image: repeating-linear-gradient(
      -45deg, transparent 0 6px, rgba(0,0,0,0.05) 6px 12px
    );
    color: var(--ink-soft);
  }
  .cabin-bar--hold {
    cursor: default;
    background: rgba(0, 0, 0, 0.06);
    border: 1px dashed rgba(0, 0, 0, 0.20);
    border-left: 3px solid rgba(0, 0, 0, 0.25);
    color: var(--ink-faint);
    font-style: normal;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* A paying-guest booking pulled from Little Hotelier. Amber + a striped fill
     so it reads as "external, not ours" next to the grey cross-gathering hold. */
  .cabin-bar--booked {
    background-color: rgba(180, 83, 9, 0.10);
    background-image: repeating-linear-gradient(
      -45deg, transparent 0 6px, rgba(180, 83, 9, 0.16) 6px 12px
    );
    border: 1px dashed rgba(180, 83, 9, 0.45);
    border-left: 3px solid rgba(180, 83, 9, 0.70);
    color: #7c3a06;
  }
  @keyframes cabin-bar-bounce {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
  }
  .cabin-bar.is-bounce { animation: cabin-bar-bounce 0.4s ease; }
  @keyframes cabin-bar-flash {
    0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,0.10); }
    30%      { box-shadow: 0 0 0 3px var(--slate); }
  }
  .cabin-bar.is-flash { animation: cabin-bar-flash 1.4s ease; z-index: 18; }

  .cabin-bar-grip { color: var(--ink-faint); font-size: 12px; flex: 0 0 auto; cursor: grab; }
  .cabin-bar-avatar {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--slate);
    color: #fff;
    font-size: 9px; font-weight: var(--weight-bold);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    letter-spacing: 0;
  }
  .cabin-bar-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .cabin-bar-name {
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;        /* the name wins the space — the gathering chip truncates first */
    min-width: 1.6em;
  }
  .cabin-bar-tag { color: var(--ink-faint); font-weight: var(--weight-normal); font-size: 10px; flex: 0 0 auto; }
  .cabin-bar-dates {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .cabin-bar--provisional .cabin-bar-dates { font-style: normal; }

  /* the no-drag "move / assign" <select> — a dropdown anchored just past the
     bar's right edge, hidden until the bar is hovered/focused. Positioned
     absolutely so revealing it never changes the bar's width (which encodes
     the stay's date range on the timeline). */
  .cabin-bar-pick { display: contents; }
  .cabin-bar-select {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 0; margin: 0; padding: 0;
    border: 0; background: transparent;
    font-family: var(--sans); font-size: 11px; color: var(--ink-soft);
    cursor: pointer; overflow: hidden;
    -webkit-appearance: none; appearance: none;
    opacity: 0;
    transition: opacity 0.12s ease;
  }
  /* Hover/focus a bar → keep its timeline width fixed (the width encodes the
     date range). The dropdown stays INSIDE the bar: inline at the right when
     there's room, wrapping onto a line below — growing the bar's height, never
     its width — when the bar is too narrow to fit it. */
  .cabin-bar:hover, .cabin-bar:focus-within {
    flex-wrap: wrap;
    height: auto;
    /* A floor so a 1–2 day bar is still wide enough to fit the name and the
       assign dropdown. Wider bars keep their date-encoded width (min-width
       only ever grows, never shrinks). */
    min-width: 180px;
    min-height: calc(var(--cabin-lane-h) - 5px);
    padding-top: 9px;    /* breathing room above the name row when expanded */
    padding-bottom: 9px; /* and beneath a wrapped dropdown */
    overflow: visible;
    z-index: 18;
    background: var(--paper);
    box-shadow: 0 2px 9px rgba(0,0,0,0.22);
  }
  .cabin-bar:hover .cabin-bar-select,
  .cabin-bar:focus-within .cabin-bar-select {
    width: 148px;
    max-width: 100%;
    padding: 3px 20px 3px 8px;
    opacity: 1;
    color: var(--ink-soft);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-xs);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238a8478'/%3E%3C/svg%3E") no-repeat right 7px center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  }
  .cabin-bar-select:hover { border-color: var(--ink-faint); color: var(--ink); }
  .cabin-bar-select:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--slate); }
  .cabin-bar-select option { color: var(--ink); }

  /* ── Drag ghost (the thing that follows the pointer) ──────────── */
  .cabin-drag-ghost {
    position: fixed;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.92;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: rotate(-1deg);
  }

  /* ── Toast (rejected drop) ────────────────────────────────────── */
  .cabin-tl-toast {
    position: sticky;
    top: 8px;
    z-index: 40;
    margin: 0 0 10px;
    padding: 9px 14px;
    background: var(--pip-flag-bg);
    color: var(--pip-flag-fg);
    border: 1px solid rgba(161, 59, 44, 0.35);
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: var(--shadow-card);
  }

  /* ── Cabin detail modal ───────────────────────────────────────── */
  .stay-modal-card--cabin { max-width: 720px; }
  .cabin-modal-title { font-size: 26px; margin: 6px 0 2px; line-height: 1.1; }
  .cabin-modal-meta { font-size: 12px; margin: 0 0 16px; letter-spacing: 0.02em; }
  .cabin-modal-desc { font-size: 15px; line-height: var(--leading-relaxed); margin: 16px 0 0; color: var(--ink-soft); }

  .cabin-gallery { margin: 0 0 4px; }
  .cabin-gallery-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--paper-warm-2);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .cabin-gallery-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .cabin-gallery-img.is-active { opacity: 1; }
  .cabin-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.32);
    color: #fff;
    border: none;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease;
  }
  .cabin-gallery-nav:hover { background: rgba(0,0,0,0.5); }
  .cabin-gallery-prev { left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .cabin-gallery-next { right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .cabin-gallery-thumbs {
    display: flex; gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .cabin-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 64px; height: 44px;
    padding: 0; border: 1px solid var(--paper-edge);
    border-radius: var(--radius-xs);
    overflow: hidden; cursor: pointer;
    background: var(--paper-warm-2);
    opacity: 0.65;
    transition: opacity 0.12s ease, border-color 0.12s ease;
  }
  .cabin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cabin-gallery-thumb:hover { opacity: 0.9; }
  .cabin-gallery-thumb.is-active { opacity: 1; border-color: var(--slate); }
  .cabin-gallery-thumb.is-floorplan img { object-fit: contain; background: #fff; }
  .cabin-gallery-thumb-tag {
    position: absolute; left: 0; bottom: 0; right: 0;
    background: rgba(0,0,0,0.45); color: #fff;
    font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase;
    text-align: center; padding: 1px 0;
  }
  .cabin-gallery--empty {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
  }
  .cabin-gallery--empty img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.95); }
  .cabin-gallery--empty p {
    position: absolute; left: 0; right: 0; bottom: 12px;
    text-align: center; font-size: 12px;
    color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }

  /* ── Master timeline extras (all cabins × all gatherings) ─────── */
  .cabin-tl-axis-span { font-size: var(--cap-sm, 10px); letter-spacing: var(--tracking-cap-tight); text-transform: uppercase; color: var(--ink-faint); }

  /* first-of-month markers across the full span */
  .cabin-tl-monthtick {
    position: absolute; top: 0; bottom: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.10);
    display: flex; align-items: flex-start;
    padding: 1px 0 0 5px;
    pointer-events: none;
  }
  .cabin-tl-monthtick span {
    font-size: var(--cap-sm, 10px); letter-spacing: var(--tracking-cap-tight); text-transform: uppercase;
    color: var(--ink-faint); white-space: nowrap;
  }
  /* the month gridline continued down through every row */
  .cabin-tl-gridmonth {
    position: absolute; top: 0; bottom: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    pointer-events: none;
  }
  /* the per-bed lane stripes don't help at year scale */
  .cabin-timeline--master .cabin-tl-track { background-image: none; }

  /* gathering windows in the axis header */
  .cabin-tl-band {
    position: absolute;
    height: 20px;                       /* `top` set inline per stacking lane */
    background: var(--band-color);
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
    display: flex; align-items: center;
    padding: 0 6px;
    overflow: hidden;
  }
  .cabin-tl-band span {
    font-size: var(--cap-xs, 9px); letter-spacing: var(--tracking-cap-tight); text-transform: uppercase;
    white-space: nowrap; color: #fff; font-weight: var(--weight-bold);
  }
  /* hover a narrow band → it expands to its full label instead of clipping */
  .cabin-tl-band:hover {
    width: auto !important;
    min-width: max-content;
    overflow: visible;
    z-index: 6;
    box-shadow: 0 2px 9px rgba(0,0,0,0.30);
  }
  /* in master mode the core band overlay would double the gathering bands — drop it */
  .cabin-timeline--master .cabin-tl-track::before { display: none; }
  .cabin-timeline--master .cabin-tl-axis-track::before { display: none; }

  .cabin-bar-gathering {
    margin-left: auto;
    font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-faint); white-space: nowrap;
    flex: 0 1 auto; min-width: 0; max-width: 78px;   /* truncate before the name does */
    overflow: hidden; text-overflow: ellipsis;
  }
  /* when a bar carries a gathering label, that's the trailing chip — hide the date label */
  .cabin-bar .cabin-bar-gathering ~ .cabin-bar-dates { display: none; }
  .cabin-timeline--master .cabin-bar-dates { display: none; }

  /* ── Cabin form: photo management ─────────────────────────────── */
  .cabin-form-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
  .cabin-form-photo {
    display: flex; flex-direction: column; gap: 4px; align-items: center;
    cursor: pointer; font-size: 11px; color: var(--ink-soft);
  }
  .cabin-form-photo img {
    width: 96px; height: 72px; object-fit: cover;
    border: 1px solid var(--paper-edge); border-radius: var(--radius-sm);
    transition: opacity 0.12s ease, filter 0.12s ease;
  }
  .cabin-form-photo:has(input:checked) img { opacity: 0.4; filter: grayscale(1); }
  .cabin-form-photo-rm { display: flex; align-items: center; gap: 4px; }

  /* ── Edit-cabins table ───────────────────────────────────────── */
  .cabins-edit-table td.cabins-edit-thumb { width: 56px; padding: 6px 8px 6px 0; }
  .cabins-edit-table .cabin-tl-thumb { width: 44px; height: 44px; display: inline-block; }

  /* ── Mobile ───────────────────────────────────────────────────── */
  @media (max-width: 768px) {
    .cabin-timeline { --cabin-label-w: 150px; }
    .cabin-tl-label { padding-right: 8px; gap: 7px; }
    .cabin-tl-thumb { width: 40px; height: 40px; }
    .cabin-tl-name { font-size: 13px; }
    .cabin-bar-select { display: none; }   /* room is too tight; keep drag only on phones */
  }
}
