/* Programmering (assets/rooster.js) */
.rs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rs-card { display: flex; flex-direction: column; gap: 12px; }
.rs-card-h { display: flex; flex-direction: column; gap: 2px; }
.rs-card-h strong { font-size: 16px; }
.rs-card-b { display: grid; grid-template-columns: 1fr; gap: 6px; }
.rs-card-b > div { display: flex; justify-content: space-between; gap: 10px; }
.rs-card-b small { color: var(--muted); }
.rs-card-b span { text-align: right; font-weight: 600; }
.rs-card .actions { margin-top: auto; }
.rs-edit { display: flex; flex-direction: column; gap: 16px; }
.rs-sec h3 { margin: 0 0 6px; font-size: 16px; }
.rs-sec > .hint { margin: 0 0 12px; }
.rs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.rs-grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; margin-top: 12px; }
.rs-pers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rs-pers .chip.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.rs-pers .chip small { opacity: .75; font-weight: 400; }
.rs-tbl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.rs-th, .rs-tr { display: grid; grid-template-columns: 74px 74px minmax(180px, 2.2fr) 110px minmax(140px, 2fr) 36px; gap: 4px; align-items: center; padding: 0 10px; }
.rs-th { background: var(--head); padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.rs-th span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-left: 8px; }
.rs-day { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px 6px; background: var(--soft); border-top: 1px solid var(--line); }
.rs-tbl > .rs-th + .rs-day { border-top: 0; }
.rs-day strong { font-size: 14px; }
.rs-day small { color: var(--muted); }
.rs-day.warn small { color: var(--bad); font-weight: 600; }
.rs-add { margin-left: auto; background: none; border: 0; color: var(--blue-d, #2f7fc7); font-weight: 600; cursor: pointer; font-size: 13px; padding: 2px 4px; }
.rs-add:hover { text-decoration: underline; }
.rs-tr { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding-top: 3px; padding-bottom: 3px; }
.rs-tr:hover { background: var(--hover); }
.rs-tr input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid transparent; background: transparent; border-radius: 6px; font: inherit; color: inherit; }
.rs-tr input:hover { border-color: var(--field-line); }
.rs-tr input:focus { border-color: var(--blue-d, #2f7fc7); background: var(--field); outline: none; }
.rs-tr input.rs-t { font-variant-numeric: tabular-nums; font-weight: 600; }
.rs-tr.new input[list="rs-acts"] { border-color: var(--field-line); background: var(--field); }
.rs-actcell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rs-actcell input { font-weight: 600; }
.rs-actcell .rs-dot { width: 10px; height: 10px; flex: none; margin: 0 0 0 6px; }
.rs-del { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; width: 28px; height: 28px; }
.rs-del:hover { color: var(--bad); background: var(--hover); }
.rs-link { background: none; border: 0; padding: 0; color: var(--blue-d, #2f7fc7); cursor: pointer; font-size: 13px; text-align: left; justify-self: start; }
.rs-link:hover { text-decoration: underline; }
.rs-show { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rs-show small { color: var(--muted); white-space: nowrap; }
.rs-show input { flex: 1; min-width: 0; padding: 5px 8px; }
.rs-prevwrap { margin-top: 8px; max-width: 760px; }
.rs-impacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rs-impact { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; }
.rs-impact small { color: var(--muted); }
.rs-impact.off span { text-decoration: line-through; color: var(--muted); }
.rs-left { justify-content: flex-start; flex-wrap: wrap; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--bad); }
.rs-acts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rs-act { display: grid; grid-template-columns: 34px minmax(160px, 1.4fr) minmax(180px, 1fr) 130px 34px; gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rs-act:first-child { border-top: 0; }
.rs-act:hover { background: var(--hover); }
.rs-act.off .rs-act-n { opacity: .55; }
.rs-act input[type=color] { width: 26px; height: 26px; padding: 0; border: 2px solid var(--card, #fff); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); background: none; cursor: pointer; overflow: hidden; }
.rs-act input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.rs-act input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.rs-act-n { display: flex; flex-direction: column; min-width: 0; }
.rs-act-n strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-act-n small { color: var(--muted); }
.rs-act .check { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.rs-baths { display: flex; flex-direction: column; margin-bottom: 10px; max-width: 520px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rs-bath { align-items: center; padding: 4px 8px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rs-bath:first-child { border-top: 0; }
.rs-bath:hover { background: var(--hover); }
.rs-bath input { padding: 6px 8px; border: 1px solid transparent; background: transparent; border-radius: 6px; font: inherit; color: inherit; min-width: 0; }
.rs-bath input:first-child { font-weight: 700; }
.rs-bath input:hover { border-color: var(--field-line); }
.rs-bath input:focus { border-color: var(--blue-d, #2f7fc7); background: var(--field); outline: none; }
.rs-bath { display: grid; grid-template-columns: 80px 1fr 34px; gap: 6px; }
.rs-style { display: flex; flex-wrap: wrap; gap: 0 12px; }
.rs-style .field { flex: 1 1 100%; }
.rs-style .field.half { flex: 1 1 calc(50% - 12px); }
.rs-pvbar { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-pvbar select { flex: 1 1 120px; min-width: 0; padding: 5px 6px; font-size: 13px; }
.rs-prev { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; display: flex; justify-content: center; }
.rs-frame { position: relative; overflow: hidden; margin: 0 auto; }
.rs-real { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rs-pick { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rs-pick .check { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.rs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 2px; }
.rs-sheets { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; margin-bottom: 10px; }
.rs-sheet { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.rs-sheet span { display: flex; flex-direction: column; }
.rs-sheet small { color: var(--muted); }
.rs-sheet.hid strong { color: var(--muted); }
@media (max-width: 820px) {
  .rs-grid2, .rs-grid3 { grid-template-columns: 1fr; }
  .rs-th { display: none; }
  .rs-tr { grid-template-columns: 70px 70px 1fr 36px; padding: 6px 8px; }
  .rs-tr > .rs-actcell { grid-column: 3; grid-row: 1; }
  .rs-tr > .rs-del { grid-column: 4; grid-row: 1; }
  .rs-tr > input:nth-of-type(3), .rs-tr > input:nth-of-type(4) { grid-column: span 2; }
  .rs-act { grid-template-columns: 40px 1fr 34px; }
  .rs-act > input[type=text], .rs-act > .check { grid-column: 2 / -1; }
}
