/* Classes (#/classes) and Prices (#/prices). Look C · Studio Line: uses the
   colours, buttons, fields and sheets in studio.css; only the layout of these
   two screens lives here. Everything is scoped under .classes / .prices. */

.classes .h1acts, .prices .h1acts { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.classes .small, .prices .small { font-size: 12px; }
.classes .pad, .prices .pad { padding: 10px 0 14px; }
.sheet .small { font-size: 12px; }
.sheet .remove-box { border-top: 1px dashed var(--band-soft); padding-top: 12px; }
.sheet .discs.days button { min-width: 58px; padding: 0 12px; }

/* ---------- Classes ---------- */
.classes .vert { margin-bottom: 22px; }
.classes .vert-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.classes .vert-head .chip { font-family: var(--display); font-weight: 500; font-size: 16px; padding: 4px 14px; }
.classes .vert > .card.empty { padding: 18px; font-weight: 700; }
.classes .prog-card { padding: 14px 20px 6px; margin-bottom: 12px; }
.classes .prog-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px dotted var(--line); }
.classes .prog-head h3 { margin: 0; font-size: 21px; }
.classes .prog-head .sub { font-size: 13px; font-weight: 700; color: var(--ink3); }
.classes .prog-head .right { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.classes .batch { display: grid; grid-template-columns: 124px minmax(0, 1fr) 170px auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 2px dotted var(--line); }
.classes .batch:last-child { border-bottom: 0; }
.classes .batch .bt { font-size: 16px; color: var(--teal-d); }
.classes .batch .name { font-weight: 800; font-size: 15px; }
.classes .batch .name .chip { margin-left: 4px; vertical-align: 1px; }
.classes .batch .note { font-size: 13px; color: var(--ink2); }
.classes .batch .bc { font-size: 14px; font-weight: 700; }
.classes .batch .bc.full { color: var(--warn); font-weight: 800; }
.classes .batch .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }

.classes .batch .clash-note { color: var(--warn); font-weight: 800; }

/* Batch sheet: class length and the clash warning. */
.sheet .discs.lens { align-items: center; }
.sheet .discs.lens button { min-width: 64px; padding: 0 12px; }
.sheet .discs.lens .mins { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink2); }
.sheet .discs.lens .mins .field { width: 84px; }
.sheet .clash-box { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn-line); border-radius: 14px; padding: 10px 14px; }
.sheet .clash-box .ct { font-weight: 800; font-size: 14px; }
.sheet .clash-box .hint { color: var(--warn); margin-top: 2px; }

/* List / Week toggle and the weekly timetable. */
.classes .cls-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.classes .wk-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.classes .wk-range { font-weight: 800; min-width: 150px; text-align: center; }
.classes .wk-days { display: none; margin-bottom: 10px; }
.classes .wk { --slot: 40px; padding: 10px 12px 12px; overflow: hidden; }
.classes .wk-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); column-gap: 4px; }
.classes .wk-head { text-align: center; font-weight: 800; font-size: 13px; padding: 4px 0 8px; color: var(--ink2); }
.classes .wk-head .num { font-family: var(--display); font-size: 16px; color: var(--ink); }
.classes .wk-head.is-today, .classes .wk-head.is-today .num { color: var(--teal-d); }
.classes .wk-times > .wk-t { height: var(--slot); font-size: 12px; font-weight: 700; color: var(--ink3); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.classes .wk-times > .wk-t:first-child { transform: none; }
.classes .wk-col {
  position: relative; height: calc(var(--rows) * var(--slot)); border-radius: 10px; background-color: #FAFDFC;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--slot));
}
.classes .wk-col.is-today { background-color: #F1F9F6; }
.classes .wb {
  position: absolute; margin: 1px 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden;
  border: 0; border-radius: 10px; padding: 4px 7px; text-align: left; text-decoration: none; font: inherit; cursor: pointer;
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.18);
}
.classes div.wb { cursor: default; }
.classes .wb:hover { filter: brightness(0.97); }
.classes .wb-name { font-weight: 800; font-size: 12px; line-height: 1.2; }
.classes .wb-time { font-size: 11px; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.classes .wb.clash { box-shadow: inset 0 0 0 2px var(--warn); }
.classes .wb-flag, .classes .wk-clash-key { background: var(--warn); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.classes .wk-clash-key { font-size: 12px; padding: 2px 10px; }
.classes .wk-key { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 20px; }

/* ---------- Prices ---------- */
.prices .back-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; text-decoration: none; min-height: 36px; margin-left: -4px; }
.prices .price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.prices .price-card { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 6px; }
.prices .price-card h2 { font-size: 21px; }
.prices .price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 2px dotted var(--line); }
.prices .price-row .name { font-weight: 800; font-size: 15px; }
.prices .price-row .note { font-size: 13px; color: var(--ink2); }
.prices .price-row .pp { text-align: right; }
.prices .price-row .amt { font-size: 20px; }
.prices .price-row .acts { display: flex; justify-content: flex-end; }

@media (max-width: 1180px) {
  .prices .price-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .classes .prog-card { padding: 12px 14px 4px; }
  .classes .prog-head .right { margin-left: 0; width: 100%; }
  .classes .batch { grid-template-columns: minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; }
  .classes .batch .bt { font-size: 15px; }
  .classes .wk-days { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  .classes .wk-days button { flex: 0 0 auto; min-height: 38px; padding: 0 12px; font-size: 13px; }
  .classes .wk { --slot: 46px; padding: 8px 10px 10px; }
  .classes .wk-grid { grid-template-columns: 48px minmax(0, 1fr); }
  .classes .wk-head:not(.sel), .classes .wk-col:not(.sel) { display: none; }
  .classes .wb-name { font-size: 14px; }
  .classes .wb-time { font-size: 12px; }
  .classes .batch .acts { justify-content: flex-start; margin-top: 4px; }
  .prices .price-card { padding: 14px 14px 6px; }
  .prices .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .prices .price-row .pp { grid-column: 2; grid-row: 1; }
  .prices .price-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .prices .price-row .acts:empty { display: none; }
}
