/* PRTY OS — Timetable Builder. Screen-specific layout only; components.css covers the rest. */

.tt { --tt-head: 176px; --tt-lane-h: 64px; --tt-ruler-h: 30px; --tt-aside: 280px; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
@media (max-width: 1100px) { .tt { --tt-head: 140px; } }

/* ---------- Layout: content + persistent forecast ---------- */
.tt-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--tt-aside); gap: var(--s-5); align-items: start; min-width: 0; }
.tt-main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.tt-aside { min-width: 0; align-self: stretch; }
.tt-aside__sticky { position: sticky; top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.tt-aside__link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-end; padding: 2px 4px; font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.tt-aside__link:hover { color: var(--text); }
.tt-fcbar { display: none; }
@media (max-width: 1279px) {
  .tt-layout { grid-template-columns: minmax(0, 1fr); }
  .tt-aside { display: none; }
  .tt-fcbar { display: flex; flex-direction: column; position: sticky; bottom: 0; z-index: 8; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-3); overflow: hidden; }
}
.tt-fcbar__toggle { display: flex; align-items: center; gap: var(--s-5); width: 100%; min-height: 48px; padding: 6px var(--s-4); text-align: left; }
.tt-fcbar__toggle:hover { background: var(--hover); }
.tt-fcbar__title { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); white-space: nowrap; }
.tt-fcbar__fig { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tt-fcbar__fig > span { font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; }
.tt-fcbar__fig > b { font-size: var(--fs-14); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt-fcbar__chev { margin-left: auto; color: var(--text-3); flex-shrink: 0; }
.tt-fcbar__panel { max-height: 60vh; overflow-y: auto; border-bottom: 1px solid var(--line-soft); }
.tt-fcbar__panel .efc { border: 0; border-radius: 0; }
@media (max-width: 720px) {
  .tt-fcbar__toggle { gap: var(--s-3); min-height: 52px; }
  .tt-fcbar__title { display: none; }
  .tt-fcbar__fig > b { font-size: var(--fs-13); }
}

/* ---------- Toolbar ---------- */
.tt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; min-height: 30px; }
.tt-toolbar .section-label { margin-bottom: 0; flex: 1; }
.tt-toolbar__main { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; flex-wrap: wrap; }
.tt-toolbar__title { font-size: var(--fs-14); font-weight: 600; letter-spacing: -0.005em; }
.tt-toolbar__meta { font-size: var(--fs-12); color: var(--text-3); }
.tt-toolbar__side { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.tt-section { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.tt-issues .alert__text { line-height: 1.55; }

/* Legend */
.tt-legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: var(--fs-12); color: var(--text-2); }
.tt-legend__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tt-swatch { --c: var(--grey); width: 14px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--c) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 3px solid var(--c); }
.tt-swatch.is-dashed { border-style: dashed; border-left-style: solid; }
.tt-swatch--conflict { background: transparent; border: 1px solid var(--amber); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 40%, transparent); }

/* ---------- Lane board ---------- */
.tt-lanes { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); min-width: 0; overflow: hidden; }
.tt-section > .tt-scroll { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.tt-scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; }
.tt-board { position: relative; min-width: 760px; }
.tt-lanes__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0 var(--s-4) 0 var(--s-2); min-height: 44px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

.tt-ruler { display: grid; grid-template-columns: var(--tt-head) minmax(0, 1fr); height: var(--tt-ruler-h); border-bottom: 1px solid var(--line); }
.tt-ruler__corner { display: flex; align-items: center; padding: 0 var(--s-4); font-size: var(--fs-11); color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; border-right: 1px solid var(--line-soft); }
.tt-ruler__track { position: relative; margin-right: var(--s-4); }
.tt-tick { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; transform: translateX(-50%); font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-tick.is-first { transform: translateX(6px); }
.tt-tick.is-last { transform: translateX(-100%); }

.tt-body { position: relative; }
.tt-lane { display: grid; grid-template-columns: var(--tt-head) minmax(0, 1fr); height: var(--tt-lane-h); }
.tt-lane + .tt-lane { border-top: 1px solid var(--line-soft); }
.tt-lane__head { display: flex; align-items: center; gap: 4px; padding: 0 var(--s-2) 0 var(--s-4); border-right: 1px solid var(--line-soft); min-width: 0; background: var(--surface); }
.tt-lane__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tt-lane__name { font-weight: 600; min-height: 24px; }
.tt-lane__name .num { font-variant-numeric: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-lane__sub { font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-lane__actions { display: flex; align-items: center; gap: 0; opacity: 0.55; transition: opacity var(--dur-1); }
.tt-lane:hover .tt-lane__actions, .tt-lane__actions:focus-within { opacity: 1; }
.tt-track { position: relative; margin-right: var(--s-4); cursor: copy; }
.tt-track:hover { background: var(--hover); }

/* Positioned layer shared by all lanes (blocks never change parent while dragging) */
.tt-layer { position: absolute; top: 0; bottom: 0; left: var(--tt-head); right: var(--s-4); pointer-events: none; }
.tt-gridlines { position: absolute; inset: 0; }
.tt-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.tt-marker { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line-strong); }
.tt-marker > span { position: absolute; bottom: 3px; left: 4px; font-size: var(--fs-10); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); white-space: nowrap; font-weight: 600; }
.tt-marker--close { border-left: 1px solid var(--text-3); }
.tt-marker--close > span { color: var(--text-3); }
.tt-afterhours { position: absolute; top: 0; bottom: 0; right: 0; background: var(--hover); }

/* Slot block */
.tt-block {
  --c: var(--grey);
  position: absolute; height: calc(var(--tt-lane-h) - 12px);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 0 12px 0 9px; min-width: 18px;
  background: color-mix(in srgb, var(--c) 11%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-left: 3px solid var(--c);
  border-radius: var(--r-1);
  pointer-events: auto; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  overflow: visible;
  transition: left var(--dur-2) var(--ease), top var(--dur-2) var(--ease), width var(--dur-2) var(--ease), background var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
}
.tt-block:hover { background: color-mix(in srgb, var(--c) 17%, var(--surface-2)); border-color: color-mix(in srgb, var(--c) 50%, transparent); border-left-color: var(--c); }
.tt-block:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tt-block.is-dashed { border-style: dashed; border-left-style: solid; }
.tt-block.is-empty .tt-block__artist { color: var(--text-3); font-weight: 500; }
.tt-block.is-selected { box-shadow: 0 0 0 1px var(--text-2); }
.tt-block.is-conflict { box-shadow: 0 0 0 1px var(--amber); }
.tt-block.is-dragging { cursor: grabbing; z-index: 5; transition: background var(--dur-1); background: color-mix(in srgb, var(--c) 22%, var(--surface-3)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.tt-block.is-dragging.is-conflict { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--amber); }
.tt-block__name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.tt-block__artist { font-weight: 600; font-size: var(--fs-13); letter-spacing: 0.01em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--dur-1); }
.tt-block__artist[data-peek]:hover { text-decoration-color: var(--text-3); }
.tt-block__billing { font: 600 var(--fs-10)/1 var(--font); letter-spacing: 0.06em; color: var(--text-2); padding: 2px 4px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-strong); flex-shrink: 0; }
.tt-block__warn { color: var(--amber); flex-shrink: 0; }
.tt-block__meta { font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-block__status { color: color-mix(in srgb, var(--c) 70%, var(--text-2)); }
.tt-block.is-short { padding-left: 6px; padding-right: 8px; }
.tt-block.is-short .tt-block__status, .tt-block.is-short .tt-block__billing { display: none; }
.tt-block__resize { position: absolute; top: 0; bottom: 0; right: -4px; width: 10px; cursor: ew-resize; touch-action: none; }
.tt-block__resize::after { content: ""; position: absolute; top: 50%; right: 5px; width: 2px; height: 16px; margin-top: -8px; border-radius: 2px; background: color-mix(in srgb, var(--c) 60%, var(--text-3)); opacity: 0; transition: opacity var(--dur-1); }
.tt-block:hover .tt-block__resize::after, .tt-block.is-dragging .tt-block__resize::after { opacity: 1; }

.tt-origin { position: absolute; height: calc(var(--tt-lane-h) - 12px); border: 1px dashed var(--line-strong); border-radius: var(--r-1); background: var(--hover); pointer-events: none; }
.tt-tip {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 6;
  padding: 3px 8px; border-radius: var(--r-1);
  background: var(--inverse); color: var(--on-inverse);
  font-size: var(--fs-11); font-weight: 600; white-space: nowrap; pointer-events: none;
}

/* Add stage */
.tt-addstage { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: var(--r-2); color: var(--text-3); font-size: var(--fs-12); font-weight: 500; transition: color var(--dur-1), background var(--dur-1); align-self: flex-start; }
button.tt-addstage:hover { color: var(--text); background: var(--hover); }
.tt-addstage--editing { padding: 0; height: auto; }
.tt-addstage--editing .input { width: 240px; }
.tt-section > .tt-addstage { margin-left: calc(var(--s-2) * -1); }

/* ---------- Artist cost sheet ---------- */
.tt-costtbl { table-layout: fixed; min-width: 1280px; }
.tt-costtbl th, .tt-costtbl td { padding: 0 6px; }
.tt-costtbl td { height: 42px; }
.tt-costtbl th:first-child, .tt-costtbl td:first-child { padding-left: var(--s-4); }
.tt-costtbl th:last-child, .tt-costtbl td:last-child { padding-right: var(--s-2); }
.tt-col-artist { width: 214px; }
.tt-col-time { width: 76px; }
.tt-col-dur { width: 110px; }
.tt-col-status { width: 124px; }
.tt-col-money { width: 96px; }
.tt-col-pct { width: 150px; }
.tt-col-total { width: 104px; }
.tt-col-act { width: 42px; }
/* Artist column stays visible while the sheet scrolls sideways */
.tt-costtbl .tt-c-artist { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: 1px 0 0 var(--line-soft); }
.tt-costtbl th.tt-c-artist { z-index: 3; }
/* sticky cells form stacking contexts: lift the active one so its artist suggestions sit above the rows below */
.tt-costtbl td.tt-c-artist:hover, .tt-costtbl td.tt-c-artist:focus-within { z-index: 6; }
.tt-grp { position: sticky; left: var(--s-4); display: inline-flex; align-items: center; }
.tt-costtbl tbody tr:hover .tt-c-artist { background: color-mix(in srgb, var(--text) 3.5%, var(--surface)); }
.tt-costtbl tr.is-selected .tt-c-artist { background: color-mix(in srgb, var(--focus) 8%, var(--surface)); }
.tt-costtbl .group-row td { border-top: 1px solid var(--line-soft); }
.tt-costtbl tbody:first-of-type .group-row td { border-top: 0; }
.tt-group-count { color: var(--text-4); margin-left: 8px; font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; font-weight: 500; }
.tt-ac { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tt-ac .aselect { flex: 1; min-width: 0; }
.tt-ac .linked { min-width: 0; }
.tt-ac .aselect__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-ac .aselect.row .btn { flex-shrink: 0; opacity: 0.5; }
.tt-srow:hover .tt-ac .aselect.row .btn, .tt-ac .aselect.row .btn:focus-visible { opacity: 1; }
.tt-srow.is-empty .tt-ac .input { border-style: dashed; }
/* The artist suggestions list escapes the scrolling sheet (positioned against the viewport at its natural spot) */
.tt-costtbl .aselect__list { position: fixed; left: auto; right: auto; top: auto; width: 320px; margin-top: 4px; }
.tt-costtbl .timeinput.input--sm, .tt-costtbl .dursel, .tt-costtbl .bfee__sel { width: 100%; }
.tt-costtbl .bfee { width: 100%; }
.tt-costtbl .bfee > .row { width: 100%; }
.tt-conflict-flag { display: inline-flex; align-items: center; color: var(--amber); flex-shrink: 0; }

/* Borderless spreadsheet money input */
.tt-cell {
  width: 100%; height: 28px; padding: 0 6px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-1);
  color: var(--text); font-size: var(--fs-13); text-align: right; outline: none;
  transition: background var(--dur-1), border-color var(--dur-1);
}
.tt-cell::placeholder { color: var(--text-4); }
.tt-cell:hover { background: var(--hover); border-color: var(--line); }
.tt-cell:focus { background: var(--surface-2); border-color: var(--focus); box-shadow: 0 0 0 3px rgba(138, 164, 242, 0.14); }
.tt-bfval { display: flex; align-items: center; gap: 2px; }
.tt-bfval .tt-cell { flex: 1; min-width: 0; }
.tt-bfval__reset { color: var(--text-3); padding: 2px; border-radius: 3px; flex-shrink: 0; }
.tt-bfval__reset:hover { color: var(--text); background: var(--hover); }

.tt-addrow td { height: 42px; }
.tt-addrow .input { border-style: dashed; }
.tt-link { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px; border-radius: var(--r-1); color: var(--text-2); font-size: var(--fs-12); font-weight: 500; }
.tt-link:hover { color: var(--text); background: var(--hover); }
.tt-subtotal td { height: 34px; color: var(--text-2); font-weight: 500; border-top: 1px solid var(--line-soft); }
.tt-costtbl tbody tr.tt-subtotal:hover { background: transparent; }
.tt-costtbl tfoot td { height: 44px; background: var(--surface-2); border-top: 1px solid var(--line-strong); font-weight: 600; text-transform: none; }
.tt-costtbl tfoot td.tt-c-artist { background: var(--surface-2); text-transform: uppercase; letter-spacing: 0.07em; font-size: var(--fs-11); color: var(--text-2); }
.tt-sheet__hint { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px var(--s-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-11); color: var(--text-3); }
.tt-sheet__hint > span { display: inline-flex; align-items: center; gap: 6px; }
.tt-sheet__hint b { color: var(--text-2); font-weight: 500; }

/* ---------- Budget summary ---------- */
.tt-summary {
  display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-3);
  overflow: hidden;
}
.tt-summary__cell { display: flex; flex-direction: column; gap: 4px; padding: 12px var(--s-4); border-left: 1px solid var(--line-soft); min-width: 0; }
.tt-summary__cell:first-child { border-left: 0; }
.tt-summary__label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-11); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; white-space: nowrap; }
.tt-summary__value { font-size: var(--fs-16); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; line-height: 1.2; }
.tt-summary__cell--lead .tt-summary__value { font-size: var(--fs-20); }
.tt-summary__sub { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-bar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; background: var(--surface-4); gap: 1px; margin-top: 3px; }
.tt-bar__seg { height: 100%; background: var(--c); transition: width var(--dur-3) var(--ease); }
@media (max-width: 1100px) {
  .tt-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-summary__cell:nth-child(3n+1) { border-left: 0; }
  .tt-summary__cell:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 720px) {
  .tt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-summary__cell, .tt-summary__cell:nth-child(3n+1) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .tt-summary__cell:nth-child(-n+2) { border-top: 0; }
  .tt-summary__cell:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .tt-summary__cell--lead .tt-summary__value { font-size: 18px; }
}

/* ---------- Drawer ---------- */
.tt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.tt-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tt-fields .field > div:not(.inline-edit) { display: flex; }
.tt-static { min-height: 28px; display: flex; align-items: center; color: var(--text-2); }
.tt-seg-scroll { overflow-x: auto; max-width: 100%; }
.tt-artist-context { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.tt-costs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-2); }
.tt-cost { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3) 0 var(--s-3); border-bottom: 1px solid var(--line-soft); }
.tt-cost .tt-cell { font-weight: 500; }
.tt-cost--bfee { grid-template-columns: minmax(0, 1fr) auto; }
.tt-settime .timeinput { width: 80px; }
.tt-settime .dursel { width: 112px; }
.tt-cost--total { border-bottom: 0; background: var(--surface-2); font-weight: 600; border-radius: 0 0 var(--r-2) var(--r-2); }
.tt-cost--total > :last-child { text-align: right; padding-right: 7px; }
@media (max-width: 720px) { .tt-fields { grid-template-columns: minmax(0, 1fr); } .tt-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mobile "add room" placement (the combined table itself is responsive, see below) ---------- */
.tt-mobile__add { margin-top: var(--s-2); }

/* ---------- Empty state ---------- */
.tt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-8) var(--s-4); color: var(--text-3); }
.tt-empty > .icon { width: 20px; height: 20px; color: var(--text-4); }
.tt-empty .seg { margin-top: var(--s-2); }
.tt-empty__control { width: min(420px, 100%); margin-top: var(--s-3); text-align: left; }
.tt-empty__control .tt-addstage--editing .input { width: 100%; }
.tt-empty__or { margin-top: var(--s-2); }
.tt-presets { display: flex; flex-direction: column; gap: var(--s-2); width: min(480px, 100%); margin-top: var(--s-3); }
.tt-preset { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 10px var(--s-3); text-align: left; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--surface-2); color: var(--text-3); transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.tt-preset:hover { background: var(--surface-3); border-color: #3A3E44; color: var(--text); }
.tt-preset__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-2); background: var(--surface-4); color: var(--text-2); flex-shrink: 0; }
.tt-preset__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tt-preset__title { font-weight: 600; color: var(--text); }
.tt-preset__sub { font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Running order: simple, larger rows (min 48px touch targets) ---------- */
.tt-ro { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.tt-ro-list { padding: 0; overflow: visible; }
.tt-ro-row { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-soft); }
.tt-ro-row.has-conflict { box-shadow: inset 3px 0 0 var(--amber, #d99a00); }
.tt-ro-main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.tt-ro-artist { display: flex; align-items: center; gap: 6px; flex: 1 1 220px; min-width: 200px; }
.tt-ro-times { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tt-ro-times label { display: flex; flex-direction: column; gap: 2px; }
.tt-ro-move, .tt-ro-actions { display: flex; align-items: center; gap: 4px; }
.tt-ro-actions { margin-left: auto; }
.tt-ro-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 var(--s-3); border: 1px solid var(--line-soft); border-radius: var(--r-3); background: var(--surface); color: var(--text-2); cursor: pointer; }
.tt-ro-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.tt-ro-btn:disabled { opacity: 0.35; cursor: default; }
.tt-ro-btn--danger { color: var(--red, #c0392b); border-color: currentColor; }
.tt-ro-btn--wide { min-height: 48px; padding: 0 var(--s-3); }
.tt-ro-confirm { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-ro-row .select, .tt-ro-row .input, .tt-ro-row .tt-cell { min-height: 40px; }
.tt-ro-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.tt-ro-fact { display: inline-flex; flex-direction: column; gap: 1px; min-width: 96px; }
.tt-ro-fact__l { font-size: var(--fs-11); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.tt-ro-fact__v { font-size: var(--fs-13, 13px); display: inline-flex; align-items: center; gap: 4px; }
.tt-ro-fact.tone-muted .tt-ro-fact__v { color: var(--text-3); }
.tt-ro-fact.tone-green .tt-ro-fact__v { color: var(--green, #1a8f4c); }
.tt-ro-fact.tone-amber .tt-ro-fact__v { color: var(--amber, #b7791f); }
.tt-ro-add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 48px; }
.tt-ro-none { padding: var(--s-3) var(--s-4); }
@media (max-width: 720px) {
  .tt-ro-row { padding: var(--s-3); }
  .tt-ro-artist { flex-basis: 100%; }
  .tt-ro-actions { margin-left: 0; }
}

/* insert before / after, sync status, per-slot fallback */
.tt-ro-btn--ins { min-width: 0; font-size: var(--t-12, 12px); white-space: nowrap; }
.tt-block__ins { position: absolute; left: 2px; bottom: 2px; display: none; gap: 2px; z-index: 3; }
.tt-block:hover .tt-block__ins, .tt-block:focus-within .tt-block__ins, .tt-block.is-selected .tt-block__ins { display: inline-flex; }
.tt-block__ins button { font-size: 10px; line-height: 1; padding: 2px 4px; border: 1px solid var(--line-soft); border-radius: var(--r-2, 4px); background: var(--surface); color: var(--text-2); cursor: pointer; }
.tt-block__ins button:hover { background: var(--hover); color: var(--text); }
.tt-sync { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12, 12px); color: var(--text-3); }
.tt-sync.is-saving { color: var(--text-2); }
.tt-sync.is-failed { color: var(--red, #c0392b); font-weight: 600; }
.tt-slot-fallback { padding: var(--s-3); color: var(--text-3); font-size: var(--t-12, 12px); }

/* 'Add before' / 'Add after' stay visible, labelled buttons at phone widths (375 / 390): the action row wraps and they share the first line */
@media (max-width: 480px) {
  .tt-ro-actions { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .tt-ro-btn--ins { flex: 1 1 40%; min-width: 120px; }
}

/* ---------- Artists & set times: room header, Columns menu, move-or-cancel room removal, document-link cells ---------- */
.tt-ro-stage { margin-bottom: var(--s-4); }
.tt-ro-stagehead { display: flex; align-items: center; gap: var(--s-2); padding: 0 0 var(--s-2); }
.tt-ro-stagename { font-weight: 600; }
.tt-ro-time { display: flex; flex-direction: column; gap: 2px; width: 88px; flex-shrink: 0; }
.tt-ro-fee { width: 110px; flex-shrink: 0; }
.tt-ro-deal { flex: 1 1 160px; min-width: 140px; }
.tt-doclinks { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }

.tt-colmenu { position: relative; display: inline-block; }
.tt-colmenu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 240px; padding: var(--s-3); box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.24)); }
.tt-colmenu__row { padding: 4px 0; }

.tt-roomremove { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.tt-roomremove--compact { font-size: var(--fs-12); }

/* Mobile (<=390px): only Set time / Artist / Status / Role stay in the compact row; fee, deal and every optional column
   move behind "Open slot details" (the same SlotDrawer used everywhere else — there is no second editor to keep in sync).
   The +Before/+After quick actions stay visible per the existing 480px rule above; only the fee/deal/facts cells are hidden here. */
@media (max-width: 390px) {
  .tt-ro-fee, .tt-ro-deal, .tt-ro-facts { display: none; }
  .tt-ro-move { display: none; }
  .tt-ro-role .select { min-width: 0; }
}
.tt-diag__more summary { cursor: pointer; font-size: var(--t-12, 12px); color: var(--text-3); }
