/* Nucleus Studio — staff app */
.boot { padding: 40px; text-align: center; color: var(--muted); }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--night); color: #cfe3ee; padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .brand { color: #fff; padding: 4px 8px 16px; }
.side a.nv { display: flex; align-items: center; gap: 10px; color: #cfe3ee; text-decoration: none; font: 700 15px var(--display); padding: 11px 12px; border-radius: 10px; }
.side a.nv:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side a.nv.on { background: rgba(245, 158, 11, .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side a.nv svg { width: 20px; height: 20px; flex: none; }
.side .who { margin-top: auto; font-size: 13px; color: #8fa6b4; padding: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side .who b { color: #fff; display: block; font-size: 14px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 21px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { padding: 20px 24px 90px; max-width: 1180px; }
.trialbar { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.bottom { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 12px 16px; }
  .page { padding: 16px 16px 96px; }
  .trialbar { padding: 8px 16px; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--night); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9fb9c8; text-decoration: none; font: 700 11px var(--display); padding: 6px 0; border-radius: 10px; }
  .bottom a.on { color: #fff; background: rgba(245, 158, 11, .16); }
  .bottom svg { width: 22px; height: 22px; }
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile b { display: block; font: 900 28px var(--display); } .tile span { color: var(--muted); font-size: 13.5px; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
.setup { display: grid; gap: 8px; }
.setup .st { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.setup .st .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; flex: none; }
.setup .st.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.setup .st.done .t { color: var(--muted); text-decoration: line-through; }
.occ { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; width: 100%; }
.occ:hover { border-color: var(--teal); }
.occ .tm { font: 800 14px var(--display); min-width: 64px; }
.occ .nm { flex: 1; min-width: 0; } .occ .nm b { display: block; } .occ .nm span { color: var(--muted); font-size: 13px; }
.occ .bar { width: 64px; height: 6px; border-radius: 6px; background: var(--line2); overflow: hidden; } .occ .bar i { display: block; height: 100%; background: var(--teal); }
.occ.cancelled { opacity: .55; } .occ.cancelled .nm b { text-decoration: line-through; }
.list { display: grid; gap: 8px; }
.prog-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week .day { min-width: 0; }
.week .day h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.week .day.today h4 { color: var(--accent-ink); }
.week .occ { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 9px; }
.week .occ .tm { min-width: 0; font-size: 12.5px; } .week .occ .nm b { font-size: 13.5px; } .week .occ .bar { width: 100%; }
@media (max-width: 960px) { .week { grid-template-columns: 1fr; } .week .occ { flex-direction: row; align-items: center; } .week .occ .bar { width: 64px; } }
.search { position: relative; } .search input { padding-left: 38px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.mhead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 900 20px var(--display); flex: none; }
.mhead h2 { font-size: 26px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.result { border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.result.good { background: var(--good-bg); color: var(--good-ink); } .result.warn { background: var(--warn-bg); color: var(--warn-ink); } .result.stop { background: var(--stop-bg); color: var(--stop-ink); }
.result b { font: 900 22px var(--display); display: block; }
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 520px; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .frame { position: absolute; inset: 18%; border: 3px solid rgba(245, 158, 11, .9); border-radius: 18px; }
.editor-row { display: grid; gap: 8px; grid-template-columns: 1.4fr 1fr 1.6fr .8fr .7fr .7fr 1fr auto; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
@media (max-width: 1100px) { .editor-row { grid-template-columns: 1fr 1fr; } }
.daypick { display: flex; gap: 3px; flex-wrap: wrap; } .daypick button { min-width: 34px; min-height: 34px; padding: 4px; border-radius: 8px; font-size: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; }
.code-big { font: 900 34px/1 var(--display); letter-spacing: .14em; background: var(--line2); border-radius: 12px; padding: 14px 18px; display: inline-block; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.signin-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 400px at 80% 0%, rgba(245, 158, 11, .14), transparent 60%), linear-gradient(180deg, var(--night), var(--navy)); }
.signin-card { width: min(420px, 100%); }
.signin-card .brand { color: #fff; margin-bottom: 18px; }
/* workout of the day */
.wod-help { margin-bottom: 14px; }
.wod-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .wod-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wod-week { grid-template-columns: 1fr; } }
.wod-day { -webkit-user-select: none; user-select: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; min-height: 170px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; transition: border-color .12s, background .12s; }
.wod-day:hover, .wod-day:focus-visible { border-color: var(--teal); outline: none; }
.wod-day.today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.wod-day.over { border-style: dashed; border-color: var(--teal); background: var(--line2); }
.wod-day.dragging { opacity: .5; }
.wod-day h4 { margin: 0; font: 800 12.5px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wod-day.today h4 { color: var(--accent-ink); }
.wod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wod-body img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 10px; }
.wod-body b { font: 900 16px/1.2 var(--display); }
.wod-body pre { margin: 0; white-space: pre-wrap; font: 12.5px/1.45 ui-monospace, Menlo, Consolas, monospace; color: var(--ink2); max-height: 160px; overflow: hidden; }
.wod-body .pill { align-self: flex-start; }
.wod-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px; }
.wod-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; font-size: 14px; }
.wod-drop.over { border-color: var(--teal); background: var(--line2); }
.wod-img img { max-height: 160px; max-width: 100%; border-radius: 10px; }
/* progress card on a member */
.beltbar { display: flex; align-items: center; gap: 10px; }
.belt { position: relative; width: 120px; height: 20px; border-radius: 4px; background: var(--b, #f1f5f9); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.belt .tip { position: absolute; right: 10px; top: 0; bottom: 0; width: 34px; background: #111827; display: flex; gap: 3px; align-items: center; justify-content: center; }
.belt.black .tip { background: #dc2626; }
.belt .tip i { width: 3px; height: 14px; background: #fff; border-radius: 1px; }
.notes-list { display: grid; gap: 8px; }
.notes-list .n { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; white-space: pre-wrap; }
.notes-list .n small { display: block; color: var(--muted); }
.wod-hour { flex-wrap: nowrap; white-space: nowrap; } .wod-hour select { width: auto; min-width: 96px; }
/* nav groups, gym logo, phone menu */
.side { overflow-y: auto; }
.side .nv-group { font: 800 10.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #6f8a9b; padding: 12px 12px 2px; }
.side a.nv { padding: 9px 12px; }
.gymbrand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.gymbrand small { color: #8fa6b4 !important; letter-spacing: .04em !important; text-transform: none !important; font-weight: 600 !important; }
.bn-more { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9fb9c8; font: 700 11px var(--display); padding: 6px 0; background: none; border: 0; }
.bn-more svg { width: 22px; height: 22px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font: 700 13px var(--display); background: var(--card); cursor: pointer; }
.more-item svg { width: 24px; height: 24px; color: var(--teal); }
a.btn.on { border-color: var(--teal); color: var(--teal); }
/* home: A-to-Z strip */
.zstrip { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.zchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink2); font-size: 13.5px; }
.zchip b { font: 900 16px var(--display); color: var(--ink); } .zchip.warn { border-color: var(--accent); background: var(--accent-soft); } .zchip.zero { opacity: .6; }
/* personal training week */
.pt-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start; }
@media (max-width: 960px) { .pt-wrap { grid-template-columns: 1fr; } }
.pt-side { display: grid; gap: 10px; position: sticky; top: 76px; }
.pt-clients { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
@media (max-width: 960px) { .pt-side { position: static; } .pt-clients { grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; max-height: none; } }
.pt-client { border: 1px solid var(--line); border-left: 4px solid var(--t); border-radius: 10px; padding: 7px 10px; background: var(--field); cursor: grab; display: grid; user-select: none; }
.pt-client b { font-size: 14px; } .pt-client:active { cursor: grabbing; } .warn-ink { color: var(--warn-ink); font-weight: 700; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px; } .pt-legend a { font-size: 12.5px; text-decoration: none; color: var(--ink2); border-left: 4px solid var(--t); padding: 2px 8px; background: var(--line2); border-radius: 6px; }
.pt-scroll { overflow: auto; max-height: calc(100vh - 190px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pt-grid { display: grid; grid-template-columns: 58px repeat(7, minmax(110px, 1fr)); min-width: 840px; }
.pt-dh { height: 44px; position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding: 0 8px; }
.pt-dh b { font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .06em; } .pt-dh span { font-size: 12px; color: var(--muted); }
.pt-day.today .pt-dh b { color: var(--accent-ink); } .pt-day.today .pt-body { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pt-times .pt-t { height: var(--row); font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.pt-day { border-left: 1px solid var(--line2); }
.pt-body { position: relative; }
.pt-slot { height: var(--row); border-top: 1px dashed transparent; } .pt-slot.hr { border-top: 1px solid var(--line2); }
.pt-body.over { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.pt-day.past .pt-body { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--line2) 60%, transparent) 8px 9px); }
.pt-sess, .pt-class { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 3px 7px; overflow: hidden; font-size: 12px; line-height: 1.25; display: flex; flex-direction: column; }
.pt-sess { background: color-mix(in srgb, var(--t) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); border-left: 4px solid var(--t); cursor: grab; z-index: 2; }
.pt-sess b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pt-sess span { color: var(--ink2); }
.pt-sess.done { opacity: .7; } .pt-sess.done b::before { content: '✓ '; color: var(--green-ink); }
.pt-sess.noshow { background: var(--stop-bg); border-color: var(--stop-ink); } .pt-sess.dragging { opacity: .4; }
.pt-class { background: var(--line2); border: 1px dashed var(--line); color: var(--muted); z-index: 1; } .pt-class b { color: var(--ink2); }
.pt-pick { margin-top: 8px; max-height: 260px; overflow: auto; }
/* inquiries board */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--line2); border-radius: 14px; padding: 8px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; }
.kcol.over { outline: 2px dashed var(--teal); }
.khead { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; } .khead b { font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.kbody { display: grid; gap: 8px; align-content: start; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: grab; display: grid; gap: 3px; }
.kcard:hover { border-color: var(--teal); } .kcard.dragging { opacity: .4; }
.kmsg { color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kempty { font-size: 13px; color: var(--muted); text-align: center; padding: 20px 6px; }
/* sales */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar .ht { height: 10px; background: var(--line2); border-radius: 6px; overflow: hidden; } .hbar .ht i { display: block; height: 100%; background: var(--teal); border-radius: 0 4px 4px 0; }
@media (max-width: 520px) { .hbar { grid-template-columns: 110px 1fr auto; } }
.chartbox { position: relative; }
.daychart { width: 100%; height: auto; display: block; } .daychart .bar { fill: var(--teal); } .daychart .bar.today { fill: var(--accent); }
.daychart text { font-size: 11px; fill: var(--muted); } .daychart .axis { stroke: var(--line); stroke-width: 1; }
.charttip { position: absolute; top: -6px; background: var(--ink); color: var(--card); font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
/* shop */
.shop-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
@media (max-width: 960px) { .shop-wrap { grid-template-columns: 1fr; } }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shop-tile { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; min-height: 112px; }
.shop-tile:hover { border-color: var(--teal); } .shop-tile:active { transform: scale(.98); }
.shop-tile .ic { font-size: 26px; line-height: 1; } .shop-tile b { font-size: 14.5px; } .shop-tile span { color: var(--ink2); font-weight: 700; }
.shop-tile .stk { font-size: 12px; color: var(--muted); font-weight: 600; } .shop-tile .stk.low { color: var(--warn-ink); } .shop-tile.out { opacity: .45; cursor: not-allowed; }
.shop-cart { position: sticky; top: 76px; } .cart-line { gap: 6px; border-bottom: 1px solid var(--line2); padding-bottom: 6px; }
.cart-total { font-size: 18px; } .pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prod-row { display: grid; grid-template-columns: 56px 1.6fr 1fr 90px 80px 1fr auto auto auto; gap: 6px; align-items: center; }
.prod-row .ico { text-align: center; font-size: 18px; padding: 6px; }
@media (max-width: 760px) { .prod-row { grid-template-columns: 56px 1fr 1fr; } }
.modal:has(.prod-row) { width: min(980px, 100%); }
.modal:has(.doc) { width: min(720px, 100%); }
/* equipment */
.eq-zone { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding-left: 10px; border-left: 4px solid var(--z); } .eq-zone b { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.eq-row { display: grid; grid-template-columns: 160px 1.5fr 70px 1fr 120px 1.2fr auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.eq-row.ro { grid-template-columns: 30px 1fr auto auto; padding: 6px 0; border-bottom: 1px solid var(--line2); } .eq-row .ic { font-size: 18px; }
@media (max-width: 960px) { .eq-row { grid-template-columns: 1fr 1fr; } .eq-row .nm { grid-column: span 2; } }
.eq-out { white-space: nowrap; }
.eq-mapwrap { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
@media (max-width: 960px) { .eq-mapwrap { grid-template-columns: 1fr; } }
.eq-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); cursor: grab; font-size: 13.5px; touch-action: none; user-select: none; }
.eq-chip.ghost { position: fixed; z-index: 2000; pointer-events: none; transform: translate(-50%, -50%); box-shadow: var(--shadow); background: var(--card); }
/* branding */
.logo-prev { min-height: 90px; display: grid; place-items: center; background: repeating-conic-gradient(var(--line2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border-radius: 12px; padding: 10px; }
.logo-prev img { max-height: 110px; max-width: 100%; }
.brand-mock { display: grid; place-items: center; }
.bm-phone { width: 230px; border-radius: 28px; border: 8px solid var(--night); background: #f6f4ef; padding: 12px; display: grid; gap: 10px; color: #0f172a; }
.bm-top { display: flex; align-items: center; gap: 8px; min-height: 34px; } .bm-top img { max-height: 34px; max-width: 150px; object-fit: contain; } .bm-top b { font: 900 15px var(--display); }
.bm-card { background: var(--g); color: #fff; border-radius: 16px; padding: 14px; display: grid; gap: 4px; justify-items: center; }
.bm-qr { width: 110px; height: 110px; background: #fff; border-radius: 8px; background-image: repeating-linear-gradient(90deg, #0f172a 0 6px, #fff 6px 12px), repeating-linear-gradient(0deg, transparent 0 6px, #fff 6px 12px); background-blend-mode: lighten; }
.bm-pw { text-align: center; font-size: 10.5px; color: #94a3b8; }
#tb-acts select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 14px; }
