@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   Staff portal: login, weekly client goal, client history
   ═══════════════════════════════════════════════════════════════ */
.seg { display: flex; margin-top: 22px; border: 1px solid var(--hair); }
.seg a { flex: 1; padding: 15px 8px; text-align: center; text-decoration: none; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.seg a + a { border-left: 1px solid var(--hair); }
.seg a.on { background: #000; color: #fff; }

.tiles.who .tile.selected { background: #000 !important; border-color: #000; color: #fff; }
.tiles.who .tile.selected > span { color: rgba(255, 255, 255, .7); }
select.box-input { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }

/* Weekly client goal */
.meter { padding: 20px 22px; background: var(--tile, var(--sand)); color: #000; }
.meter.hit { background: var(--blue); }
.meter-top { display: flex; justify-content: space-between; }
.meter-top .label { color: #000; }
.meter-num { margin-top: 10px; font: 200 clamp(40px, 10vw, 60px)/1 var(--font); font-stretch: 125%; }
.meter-num small { margin-left: 10px; font-size: 12px; font-weight: 400; letter-spacing: .2em; }
.meter-bar { height: 4px; margin-top: 14px; background: rgba(255, 255, 255, .85); }
.meter-bar i { display: block; height: 100%; background: #000; transition: width .6s ease; }

/* Weekly rewards */
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ms { display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 16px; border: 1px dashed rgba(0, 0, 0, .3); }
.ms.done { background: var(--blue); border: 1px solid var(--blue); }
.ms-at { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ms.done .ms-at { color: #000; }
.ms b { font-weight: 400; font-size: 14px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; }
.ms-state { margin-top: auto; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Weekly history + team */
.wbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; height: 190px; margin-top: 16px; }
.wbar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.wbar i { display: block; width: 100%; min-height: 2px; background: var(--sand); }
.wbar.hit i { background: var(--blue); }
.wbar-n { font-size: 12px; }
.wbar-d { font-size: 10px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.line.me { font-weight: 600; }

/* Client list */
.client-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.client-stats div { padding: 16px; background: var(--tile, var(--sand)); color: #000; }
.client-stats .label { color: #000; }
.client-stats b { display: block; margin-top: 10px; font: 400 14px/1 var(--font); font-stretch: 120%; }
.ctable { margin-top: 22px; border-top: 1px solid var(--hair); }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.crow:hover { background: var(--blue-soft); }
.crow b { display: block; font-weight: 400; letter-spacing: .12em; }
.crow small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.crow > span:nth-child(3), .crow > span:nth-child(4), .crow.head { display: none; }
.crow > span:nth-child(2) { font-size: 12px; letter-spacing: .1em; text-align: right; }

@media (min-width: 1000px) {
  .seg { max-width: 600px; }
  .ms-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .tiles.who { grid-template-columns: repeat(4, 1fr); }
  #pinForm { max-width: 420px; }
  .client-stats { max-width: 480px; }
  .ctable { margin-top: 26px; }
  .crow { grid-template-columns: 2fr 1.7fr 1fr .5fr; padding: 14px 12px; }
  .crow > span:nth-child(3), .crow > span:nth-child(4) { display: block; }
  .crow > span:nth-child(2) { text-align: left; }
  .crow > span:nth-child(3), .crow > span:nth-child(4) { text-align: right; }
  .crow.head { display: grid; cursor: default; font-size: 10px; letter-spacing: .26em; color: var(--muted); }
  .crow.head:hover { background: none; }
}

/* Technician: own clients this week — scroll if long */
.week-list { max-height: 420px; overflow-y: auto; }

/* ── Owner: Team tab ── */
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.period button { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--tile, var(--sand)); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #000; cursor: pointer; }
.period button.on { background: #000; color: #fff; }
.period .small { margin-left: 8px; }
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.team-stats div { padding: 18px; border-radius: 18px; background: var(--tile, var(--sand)); color: #000; }
.team-stats div:last-child { background: var(--blue); }
.team-stats .label { color: #000; }
.team-stats b { display: block; margin-top: 10px; font: 400 14px/1 var(--font); font-stretch: 120%; }
.ttable { margin-top: 14px; overflow-x: auto; }
.trow { display: grid; grid-template-columns: 1.6fr .7fr 1fr .6fr 1fr 1fr; gap: 12px; align-items: center; min-width: 560px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.trow > span:not(:first-child) { text-align: right; }
.trow b { display: block; font-weight: 400; letter-spacing: .12em; }
.trow small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.trow.head { padding-top: 0; font-size: 10px; letter-spacing: .24em; color: var(--muted); border-bottom: 1px solid var(--hair); }
.trow.total { font-weight: 600; border-bottom: 0; }
.trow .pay { font-weight: 600; }

/* ── Owner: Schedule tab — day view, one column per technician ── */
.ds-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 26px; }
.ds-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ds-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ds-legend i { width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ds-nav { display: flex; align-items: center; gap: 14px; }
.ds-date { display: flex; flex-direction: column; align-items: center; min-width: 190px; }
.ds-date b { font: 400 14px/1.1 var(--font); font-stretch: 112%; letter-spacing: .04em; }
.ds-date span { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.nav-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--tile, var(--sand)); color: #000; font-size: 14px; cursor: pointer; }
.ds-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pill { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--tile, var(--sand)); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #000; cursor: pointer; }
.pill.on { background: #000; color: #fff; }

.ds-scroll { margin-top: 16px; overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -30px rgba(51,36,27,.35); }
.ds { display: grid; grid-template-columns: 74px repeat(var(--cols), minmax(150px, 1fr)); grid-template-rows: auto calc(var(--rows) * var(--slot)); min-width: calc(74px + var(--cols) * 150px); }
.ds-corner { border-bottom: 1px solid var(--hair); }
.ds-head { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 8px 12px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--hair); text-align: center; }
.ds-head .av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #000; }
.ds-head b { font-weight: 600; font-size: 12px; letter-spacing: .18em; }
.ds-head small { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.ds-times span { display: block; height: var(--slot); padding: 0 10px 0 0; text-align: right; font-size: 10px; letter-spacing: .04em; color: var(--muted); transform: translateY(-6px); white-space: nowrap; }
.ds-col { position: relative; border-left: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot) * 2 - 1px), var(--line) calc(var(--slot) * 2 - 1px), var(--line) calc(var(--slot) * 2)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot) - 1px), rgba(0,0,0,.035) calc(var(--slot) - 1px), rgba(0,0,0,.035) var(--slot)); }
.ds-off { position: absolute; left: 0; right: 0; z-index: 0; background: rgba(120, 112, 105, .22); display: flex; align-items: flex-start; padding: 6px 8px; }
.ds-off span { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(0,0,0,.45); }
.ab { position: absolute; left: 4px; right: 4px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 5px 7px; overflow: hidden;
  border: 0; border-left: 4px solid transparent; border-radius: 8px; color: #000; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .12s, box-shadow .12s; }
.ab:hover { transform: translateY(-1px); z-index: 2; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); }
.ab b { font-size: 10px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.ab span { font-size: 10px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ab small { font-size: 10px; letter-spacing: .04em; color: rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-transform: none; }
.ab.done, .ab.noshow { opacity: .85; }
.ab.noshow span { text-decoration: line-through; }
.ds-now { position: absolute; left: 0; right: 0; z-index: 3; height: 2px; background: #E0453A; pointer-events: none; }
.ds-col:first-of-type .ds-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E0453A; }
@media (max-width: 999.98px) {
  .ds-bar { grid-template-columns: 1fr; justify-items: start; }
  .ds-right { justify-content: flex-start; }
}

@media (min-width: 1000px) {
  .team-stats { grid-template-columns: repeat(4, 1fr); }
  .seg { max-width: none; }
}

/* Schedule: 9 people + Anyone — narrower columns; readable text on brown (confirmed) and red (no show) */
.ds { grid-template-columns: 70px repeat(var(--cols), minmax(118px, 1fr)); min-width: calc(70px + var(--cols) * 118px); }
.ds-head { padding: 12px 6px 10px; }
.ds-head .av { width: 34px; height: 34px; font-size: 12px; }
.ds-head b { font-size: 10px; letter-spacing: .14em; }
.ab.confirmed, .ab.noshow { color: #fff; }
.ab.confirmed small, .ab.noshow small { color: rgba(255, 255, 255, .82); }
.ab.noshow { opacity: 1; }
/* Anyone (no preference) column stands apart */
.ds-head:nth-last-child(1 of .ds-head) { background: var(--blue-soft); }
.ds-col:last-child { background-color: rgba(169, 205, 230, .12); }

/* Schedule: movable + adjustable appointments */
.ds-hint { margin-top: 10px; }
.ab { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ab em { font-style: normal; font-size: 10px; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ab.confirmed em, .ab.noshow em { color: rgba(255, 255, 255, .9); }
.ab.dragging { z-index: 6; cursor: grabbing; opacity: .92; transition: none; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .45); }
.ab-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.ab-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .15s; }
.ab:hover .ab-resize::after { opacity: 1; }
.ab.confirmed .ab-resize::after, .ab.noshow .ab-resize::after { background: rgba(255, 255, 255, .7); }
.ds-col.drop { background-color: rgba(176, 138, 104, .12); box-shadow: inset 0 0 0 2px rgba(176, 138, 104, .5); }

/* Edit appointment form */
.appt-form .box-field { margin-top: 12px; }
.appt-row { display: grid; gap: 0 12px; }
.appt-row.two { grid-template-columns: 1fr 1fr; }
.appt-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
.appt-form .box-input { height: 48px; border-radius: 14px; font-size: 14px; }
.appt-form .box-input:disabled { background: var(--blue-soft); color: rgba(0, 0, 0, .55); }
.appt-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 18px; }
.appt-actions .btn { border-radius: 14px; max-width: none; }
.appt-form #apptDel { margin-top: 16px; }
.sheet-panel:has(#apptForm) { width: min(640px, calc(100vw - 48px)); }
.ab > b, .ab > span, .ab > em, .ab > small { flex-shrink: 0; }

/* Appointment with several services / technicians */
.svc-head, .svc-line { display: grid; grid-template-columns: 1.7fr 1.1fr 1fr .9fr 34px; gap: 8px; align-items: center; }
.svc-head { margin-top: 20px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.svc-line { margin-top: 8px; }
.svc-line .box-input { height: 44px; padding-left: 12px; padding-right: 28px; font-size: 12px; background-position: right 10px center; }
.svc-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tile, var(--sand)); color: #000; font-size: 18px; line-height: 1; cursor: pointer; }
span.svc-x { background: none; }
.add-svc { margin-top: 12px; padding: 11px 18px; border: 1px dashed rgba(0, 0, 0, .3); border-radius: 14px; background: none; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #000; cursor: pointer; }
.add-svc:hover { background: var(--blue-soft); border-style: solid; }
.svc-total { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); letter-spacing: .08em; }
.sheet-panel:has(#apptForm) { width: min(760px, calc(100vw - 48px)); max-width: none; }
/* Schedule block: linked to other services of the same client */
.ab .ab-chain { font-style: normal; font-weight: 400; margin-left: 2px; }
.ab .ab-with { font-style: italic; opacity: .9; }
.ab.linked { box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1.5px rgba(255, 255, 255, .55); }

/* Book a call-in from the schedule */
.add-appt { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--taupe); color: #fff; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.add-appt:hover { filter: brightness(.95); }

/* Call-in lookup (last 4 digits) */
.lookup { padding: 4px 14px 14px; margin-bottom: 4px; border-radius: 16px; background: var(--blue-soft); }
.lookup #last4 { max-width: 200px; font-size: 14px; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.lookup-out { display: grid; gap: 8px; margin-top: 10px; }
.lookup-out:empty { display: none; }
.match { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.match b { font-weight: 600; letter-spacing: .12em; }
.match .num { justify-self: end; grid-column: 3; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.match small { grid-column: 1 / -1; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.match.on { box-shadow: inset 0 0 0 2px var(--taupe); background: #fff; }
.match.on::after { content: '✓ Filled in below'; grid-column: 1 / -1; font-size: 10px; letter-spacing: .14em; color: #8B6A50; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #000; font-style: normal; font-size: 10px; letter-spacing: .14em; vertical-align: middle; }

/* Owner: Customers tab */
.cust-stats { grid-template-columns: repeat(3, 1fr); margin-top: 26px; max-width: 720px; }
.cust-table { margin-top: 22px; overflow-x: auto; border-top: 1px solid var(--hair); }
.custrow { display: grid; grid-template-columns: 1.7fr 1.15fr .5fr 1.5fr 1fr 1.2fr; gap: 12px; align-items: center; width: 100%; min-width: 760px;
  padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 12px; letter-spacing: .06em; cursor: pointer; }
.custrow:hover { background: var(--blue-soft); }
.custrow b { font-weight: 600; letter-spacing: .12em; }
.custrow .num { font-variant-numeric: tabular-nums; }
.custrow.head { cursor: default; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair); }
.custrow.head:hover { background: none; }
.cust-history { max-height: 320px; overflow-y: auto; }

/* Customers: what they paid */
.custrow { grid-template-columns: 1.6fr 1.1fr .45fr 1.45fr .95fr .7fr .8fr 1.15fr; min-width: 920px; }
.custrow .r { text-align: right; }
.cust-stats { grid-template-columns: repeat(4, 1fr); max-width: 960px; }
.cust-history .paid { color: #000; font-weight: 600; }

/* Front desk sign-in */
.desk-tiles { grid-template-columns: 1fr !important; max-width: 520px; }
.desk-tile { min-height: 96px; background: var(--taupe) !important; color: #fff !important; }
.desk-tile > span { color: rgba(255, 255, 255, .85) !important; }
.desk-tile.selected { background: #000 !important; }
.desk-who { margin-right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--blue); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Schedule: a technician's own time off (day off / half day) */
.ds-off.tech-off { background: repeating-linear-gradient(135deg, rgba(120, 112, 105, .22) 0 8px, rgba(120, 112, 105, .32) 8px 16px); }
.ds-off.tech-off span { color: rgba(0, 0, 0, .6); }
.ds-head.is-off { background: rgba(120, 112, 105, .14); }

/* Staff hours grid */
.hours-bar { grid-template-columns: 1.4fr auto 1fr; }
.hours-bar .small b { color: #000; font-weight: 600; }
.hours-scroll { margin-top: 16px; overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hours-grid { display: grid; grid-template-columns: 200px repeat(var(--days), minmax(108px, 1fr)); min-width: 980px; }
.hg-corner { display: flex; align-items: flex-end; padding: 0 14px 12px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair); }
.hg-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--hair); }
.hg-day span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hg-day b { font: 400 14px/1 var(--font); }
.hg-day small { font-size: 10px; color: var(--muted); }
.hg-day.today { background: var(--blue); }
.hg-day.today span, .hg-day.today small { color: #000; }
.hg-name { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.hg-name:hover { background: var(--blue-soft); }
.hg-name .av { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 600; }
.hg-name b { font-weight: 600; font-size: 12px; letter-spacing: .14em; }
.hg-name small { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.hg-cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 8px; border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font-size: 10px; letter-spacing: .04em; }
.hg-cell:hover:not(:disabled) { outline: 2px solid var(--taupe); outline-offset: -2px; }
.hg-cell b { font-weight: 600; white-space: nowrap; }
.hg-cell small { font-size: 10px; letter-spacing: .04em; opacity: .8; }
.hg-cell .note { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hg-cell.work { background: #fff; }
.hg-cell.part { background: #FBEFC4; }
.hg-cell.off { background: repeating-linear-gradient(135deg, rgba(120,112,105,.18) 0 8px, rgba(120,112,105,.28) 8px 16px); }
.hg-cell.woff { background: rgba(120, 112, 105, .14); color: rgba(0, 0, 0, .6); }
.hg-cell.closed { background: rgba(0, 0, 0, .04); color: var(--muted); cursor: default; }
.hours-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hours-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.hours-legend .work::before { background: #fff; }
.hours-legend .part::before { background: #FBEFC4; }
.hours-legend .off::before { background: repeating-linear-gradient(135deg, rgba(120,112,105,.18) 0 4px, rgba(120,112,105,.3) 4px 8px); }
.hours-legend .woff::before { background: rgba(120, 112, 105, .14); }
.hours-legend .closed::before { background: rgba(0, 0, 0, .04); }

/* Day editor + weekly editor */
.hopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hopt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--tile, var(--sand)); cursor: pointer; }
.hopt input { margin-top: 3px; accent-color: #8B6A50; }
.hopt b { display: block; font-weight: 600; font-size: 12px; letter-spacing: .12em; }
.hopt small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.hopt:has(input:checked) { background: var(--taupe); color: #fff; }
.hopt:has(input:checked) small { color: rgba(255, 255, 255, .85); }
.hours-warn { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #FBEFC4; }
#hoursForm .box-input, #weekForm .box-input { height: 46px; border-radius: 14px; font-size: 12px; }
.week-rows { display: grid; gap: 8px; margin-top: 8px; }
.week-row { display: grid; grid-template-columns: 1.2fr .9fr 1fr 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.week-row b { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.week-row.closed { grid-template-columns: 1.2fr 3fr; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: #8B6A50; }
.sheet-panel:has(#hoursForm), .sheet-panel:has(#weekForm) { width: min(620px, calc(100vw - 48px)); max-width: none; }

/* ───── Promos (staff) ───── */
.promo-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.promo-top .small { max-width: 640px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.promo-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -28px rgba(51,36,27,.4); }
.promo-card.ended { opacity: .6; }
.promo-card > img { width: 100%; height: 140px; object-fit: cover; }
.promo-art { height: 110px; display: grid; place-items: center; }
.promo-art span { font: 400 14px/1 var(--font); font-stretch: 118%; letter-spacing: .12em; text-transform: uppercase; }
.t-deal.promo-art, .deal-card.t-deal { background: #E9DCCB; }
.t-flyer.promo-art, .deal-card.t-flyer { background: #CDE2F1; }
.t-wheel.promo-art, .deal-card.t-wheel { background: #A9CDE6; }
.t-scratch.promo-art, .deal-card.t-scratch { background: #D9BFA4; }
.t-raffle.promo-art, .deal-card.t-raffle { background: #F2E6C9; }
.promo-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.promo-body h3 { margin: 0; font: 400 14px/1.2 var(--font); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; }
.promo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.promo-stats div { padding: 10px; border-radius: 12px; background: var(--blue-soft); text-align: center; }
.promo-stats b { display: block; font: 400 14px/1.1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-stats span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.pill.dark { background: #000; color: #fff; }
.ptypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
#promoForm textarea.box-input { height: auto; padding: 12px; line-height: 1.6; font-family: inherit; }
.sheet-panel:has(#promoForm) { width: min(720px, calc(100vw - 48px)); max-width: none; }
[data-for][hidden] { display: none !important; }

/* ───── Deals & games (customer app) ───── */
.tabbar a.has-new { position: relative; }
.tabbar a.has-new::before { content: attr(data-count); position: absolute; top: 4px; right: 50%; transform: translateX(26px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #D9534F; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; letter-spacing: 0; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.deal-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 16px; overflow: hidden; border: 0; border-radius: 20px; text-align: left; color: #000; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(0,0,0,.4); }
.deal-card.fresh { box-shadow: inset 0 0 0 2px #D9534F; }
.deal-card img { margin: -16px -16px 6px; width: calc(100% + 32px); height: 110px; object-fit: cover; }
.deal-card .label { color: #000; }
.deal-card b { font: 400 14px/1.2 var(--font); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.deal-card small { font-size: 12px; line-height: 1.5; letter-spacing: .04em; text-transform: none; }
.deal-state { margin-top: auto; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.deal-ends { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.deal-reward { display: grid; gap: 4px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--blue); }
.deal-reward b { font: 400 24px/1.1 var(--font); font-stretch: 118%; letter-spacing: .04em; text-transform: uppercase; }
.deal-reward small { font-size: 10px; letter-spacing: .12em; color: rgba(0,0,0,.65); }
.promo-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; margin-top: 10px; }
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 18px auto 6px; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--hair), 0 20px 40px -20px rgba(0,0,0,.45);
  transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); }
.wheel span { position: absolute; left: 50%; top: 0; height: 50%; width: 0; transform-origin: bottom center; }
.wheel span i { position: absolute; top: 18px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wheel-pin { position: absolute; z-index: 2; top: -10px; left: 50%; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-top: 22px solid #D9534F; }
.scratch { position: relative; width: 320px; height: 150px; margin: 18px auto 8px; border-radius: 18px; overflow: hidden; background: var(--blue); box-shadow: 0 16px 30px -18px rgba(0,0,0,.4); }
.scratch-prize { position: absolute; inset: 0; display: grid; place-items: center; font: 400 32px/1.1 var(--font); font-stretch: 118%; letter-spacing: .06em; text-transform: uppercase; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.game-result { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); text-align: center; letter-spacing: .06em; }
.game-result.win { background: #CFEACB; }
.mast-sub span.desk-who { font-size: 10px; font-weight: 400; font-stretch: 100%; letter-spacing: .2em; line-height: 1.6; }
.deal-ends { top: auto; bottom: 14px; }

/* ───── Technician accounts ───── */
.av.has-photo, .av-photo { background-size: cover; background-position: center; }
.tech-tile { position: relative; padding-left: 74px !important; }
.tech-tile .tile-av { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: #000; box-shadow: 0 0 0 2px #fff; background-size: cover; background-position: center; }
.mast-sub span .mast-av { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-right: 14px; vertical-align: middle; border-radius: 50%;
  font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1; color: #000; background-size: cover; background-position: center; }
.ds-head .av.has-photo, .hg-name .av.has-photo { color: transparent; }

/* Staff ID card — "Quiet": vertical CR80 (2.125 × 3.375 in), solid dark brown, white type */
.id-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; }
.id-card { position: relative; aspect-ratio: 2.125 / 3.375; container-type: inline-size; overflow: hidden; border-radius: 14px;
  background: #2B1E17; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 24px 40px -24px rgba(43,30,23,.7);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-in { position: absolute; inset: 0; padding: 10cqw; display: flex; flex-direction: column; justify-content: space-between; }
.idc-logo { height: 10cqw; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.idc-name { display: block; font: 300 15cqw/.95 var(--font); font-stretch: 125%; letter-spacing: .05em; text-transform: uppercase; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idc-cap { margin-top: 4cqw; display: grid; gap: 2cqw; font-size: 4.2cqw; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.idc-back { display: grid; gap: 7cqw; }
.idc-qr { width: 46%; aspect-ratio: 1; padding: 2.4cqw; border-radius: 3.4cqw; background: #fff; }
.idc-qr img, .idc-qr canvas { width: 100% !important; height: 100% !important; display: block; }
.idc-txt { display: grid; gap: 2cqw; font-size: 4.2cqw; line-height: 1.3; letter-spacing: .1em; color: rgba(255,255,255,.75); text-transform: none; }
.id-card.back { display: block; margin-top: 0; color: #fff; }
#printCard-area { display: none; }
@media print {
  @page { margin: 12mm; }
  body > *:not(#printCard-area) { display: none !important; }
  #printCard-area { display: block !important; }
  #printCard-area .id-cards { display: grid; grid-template-columns: repeat(2, 2.125in); gap: 0.4in; }
  #printCard-area .id-card { width: 2.125in; height: 3.375in; border-radius: 0.125in; box-shadow: none; }
}

/* Profile page */
.profile-wrap { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.prof-photo { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.prof-pic { display: grid; place-items: center; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; background: var(--blue) center / cover; font-size: 14px; font-weight: 400; }
.prof-upload { display: inline-block; cursor: pointer; }
@media (max-width: 999.98px) { .profile-wrap { grid-template-columns: 1fr; gap: 0; } }

/* My schedule (technician's own week) */
.my-head { display: flex; align-items: center; gap: 12px; }
.my-head .av.big { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 14px; font-weight: 600; background-size: cover; background-position: center; }
.my-head b { display: block; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.my-head small { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.my-week .ds-head .wk { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.my-week .ds-head b { font: 400 14px/1 var(--font); letter-spacing: 0; }
.my-week .ds-head.today { background: var(--blue); }
.ab.readonly { cursor: pointer; }

/* ── More promo games ── */
.t-slots.promo-art, .deal-card.t-slots { background: #EAD3D8; }
.t-four.promo-art, .deal-card.t-four { background: #CFE0D3; }
.t-gomoku.promo-art, .deal-card.t-gomoku { background: #DDD6EC; }

/* Slot machine */
.slot-machine { margin: 18px auto 6px; width: min(100%, 300px); padding: 16px; border-radius: 22px; background: #2B1E17; box-shadow: 0 20px 40px -22px rgba(0,0,0,.55); }
.slot-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-reel { aspect-ratio: 1 / 1.15; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 44px; line-height: 1; transition: transform .2s, box-shadow .2s; }
.slot-reel.spinning { filter: blur(1.2px); transform: translateY(2px); }
.slot-reel.hit { box-shadow: 0 0 0 4px #fff; transform: scale(1.04); }
.slot-pull { width: 100%; margin-top: 12px; background: #E8C77A !important; color: #2B1E17 !important; }
.paytable { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 10px auto 0; max-width: 360px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.paytable span { display: inline-flex; align-items: center; gap: 6px; }
.paytable i { font-style: normal; font-size: 12px; letter-spacing: 0; }

/* Board games */
.board-rules { margin-top: 8px; line-height: 1.5; }
.board { display: grid; gap: 4px; margin: 14px auto 4px; padding: 8px; border-radius: 16px; width: min(100%, 340px); }
.board.four { grid-template-columns: repeat(7, 1fr); background: #A9CDE6; }
.board.gomoku { grid-template-columns: repeat(13, 1fr); gap: 0; padding: 6px; background: #E9DCCB; width: min(100%, 380px); isolation: isolate; }
.board button { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; }
.c4 { border-radius: 50%; background: #fff; }
.c4.you { background: #2B1E17; }
.c4.cpu { background: #E8C77A; }
.c4.new { animation: c4drop .3s ease-out; }
@keyframes c4drop { from { transform: translateY(-120%); opacity: .4; } to { transform: none; opacity: 1; } }
.gm { position: relative; background: transparent; }
.gm::before, .gm::after { content: ''; position: absolute; z-index: -1; background: rgba(43,30,23,.35); }
.gm::before { left: 0; right: 0; top: 50%; height: 1px; }
.gm::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.gm.you { background: radial-gradient(circle, #2B1E17 0 60%, transparent 63%); }
.gm.cpu { background: radial-gradient(circle, #fff 0 60%, rgba(43,30,23,.3) 61% 63%, transparent 64%); }
.gm.new { box-shadow: inset 0 0 0 2px #E8C77A; border-radius: 50%; }
.gm:hover:not(.you):not(.cpu) { background: radial-gradient(circle, rgba(43,30,23,.22) 0 48%, transparent 50%); }
.board.done { pointer-events: none; }
.board-msg { text-align: center; min-height: 1.2em; }

/* ── Game drop: client card + countdown ── */
.drop-card { padding: 22px; border-radius: 22px; background: #2B1E17; color: #fff; }
.drop-card .label { color: rgba(255,255,255,.7); }
.drop-title { margin-top: 10px; font: 400 14px/1 var(--font); font-stretch: 120%; letter-spacing: .04em; text-transform: uppercase; }
.drop-game { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.drop-prizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.drop-prizes span { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; max-width: 420px; }
.cd span { display: grid; gap: 4px; padding: 12px 6px 10px; border-radius: 14px; background: rgba(255,255,255,.1); text-align: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cd b { font: 400 32px/1 var(--font); font-stretch: 115%; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cd.live span { background: rgba(232,199,122,.18); }
.drop-note { margin-top: 12px; color: rgba(255,255,255,.75); }
.drop-play { margin-top: 16px; background: #E8C77A !important; color: #2B1E17 !important; }
.drop-res { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 12px; line-height: 1.5; letter-spacing: .03em; }
.drop-res.win { background: rgba(207,234,203,.2); }
.drop-res a { color: #E8C77A; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 2px; border-radius: 50%; background: #E46A5B; animation: livePulse 1.2s infinite; }
@keyframes livePulse { 50% { opacity: .3; } }
#sheet .cd span { background: var(--sand); color: var(--muted); }
#sheet .cd b { color: var(--ink); }

/* Owner: Promos → Game drop */
.drop-admin-sec { margin-top: 6px; }
.drop-admin { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: var(--sand); }
.drop-admin h3 { margin-top: 4px; font: 400 14px/1.1 var(--font); font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; }
.drop-admin.ph-live { background: #F3E3C3; }
.drop-admin.ph-closed { opacity: .8; }
.drop-admin .cd { margin: 0; gap: 4px; }
.drop-admin .cd span { padding: 8px 4px 6px; background: #fff; color: var(--muted); }
.drop-admin .cd b { font-size: 18px; color: var(--ink); }
.drop-admin .cd-cap { grid-column: 2; text-align: center; margin-top: -2px; }
.drop-admin .promo-actions { grid-column: 1 / -1; }
.drop-sum { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft, #EEF5FB); line-height: 1.5; }
@media (max-width: 679px) { .drop-admin { grid-template-columns: 1fr; } .drop-admin .cd-cap { grid-column: 1; } }

/* Game drop · live raffle draw */
.draw-live { margin-top: 10px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.08); text-align: center; }
.draw-num { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.draw-num b { font: 400 64px/1 var(--font); font-stretch: 115%; color: #E8C77A; font-variant-numeric: tabular-nums; }
.draw-num span { font: 400 24px/1 var(--font); color: rgba(255,255,255,.7); }
.draw-cap { margin-top: 4px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.draw-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 12px; max-width: 360px; }
.draw-slots i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.14); transition: background .4s, transform .4s; }
.draw-slots i.on { background: #E8C77A; transform: scale(1.05); }
.draw-slots i.next { box-shadow: inset 0 0 0 2px #E8C77A; animation: livePulse 1s infinite; }
.draw-left { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }

/* Calendar buttons after a drop */
.cal-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.cal-btns .cal-add { width: auto; padding: 0 18px; background: #fff !important; color: #2B1E17 !important; }
.cal-btns .textlink { color: rgba(255,255,255,.85); }

/* Booking bar for a game-drop prize waiting to be booked */
.winbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 18px; background: #2B1E17; color: #fff; box-shadow: 0 16px 36px -14px rgba(0,0,0,.55); }
.winbar[hidden] { display: none; }
.wb-txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.wb-txt b { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.wb-txt small { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.winbar .wb-btn { width: auto; flex: none; padding: 0 18px; height: 44px; background: #E8C77A !important; color: #2B1E17 !important; }
@media (min-width: 680px) { .winbar { left: auto; right: 16px; bottom: 16px; max-width: 460px; } }

/* Raffle rounds: 1st / 2nd / 3rd place */
.draw-rounds { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.draw-rounds span { padding: 6px 12px; border-radius: 10px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.draw-rounds span.now { background: #E8C77A; color: #2B1E17; }
.draw-rounds span.done { color: rgba(255,255,255,.85); text-decoration: line-through; text-decoration-color: rgba(232,199,122,.8); }
.draw-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px auto 12px; max-width: 520px; }
.draw-prizes span { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 12px; letter-spacing: .04em; color: #fff; }
.draw-prizes span b { margin-left: 4px; font-weight: 600; color: #E8C77A; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.draw-prizes span.gone { opacity: .4; text-decoration: line-through; }
.drop-prizes span { text-transform: none; letter-spacing: .04em; font-size: 12px; line-height: 1.4; }

/* Game drop form: roomy prize lists in normal case */
#dropForm textarea.box-input { height: auto; min-height: 200px; padding: 12px 14px; line-height: 1.55; text-transform: none; letter-spacing: .02em; font-size: 14px; resize: vertical; }

/* ═══ Game drop: brown and white only (no gold, red or green accents) ═══ */
.drop-card { background: #2B1E17; color: #fff; }
.drop-card .label, .drop-game, .drop-note { color: rgba(255,255,255,.72); }
.drop-prizes span, .drop-res, .draw-live, .cd span, .draw-prizes span, .draw-rounds span, .draw-slots i { background: rgba(255,255,255,.08); }
.drop-res.win { background: #fff; color: #2B1E17; }
.drop-res.win a, .drop-res a { color: inherit; text-decoration: underline; }
.live-dot { background: #fff; }
.cd.live span { background: rgba(255,255,255,.14); }
.drop-play, .winbar .wb-btn, .slot-pull { background: #fff !important; color: #2B1E17 !important; }
.draw-num b { color: #fff; }
.draw-num span, .draw-cap { color: rgba(255,255,255,.6); }
.draw-rounds span { color: rgba(255,255,255,.5); }
.draw-rounds span.now { background: #fff; color: #2B1E17; }
.draw-rounds span.done { color: rgba(255,255,255,.7); text-decoration-color: rgba(255,255,255,.7); }
.draw-slots i.on { background: #fff; }
.draw-slots i.next { box-shadow: inset 0 0 0 2px #fff; }
.draw-prizes span b { color: #fff; opacity: .7; }
.cal-btns .cal-add { background: #fff !important; color: #2B1E17 !important; }
.winbar { background: #2B1E17; }
/* Pop-ups (winner, notice) stay white with brown */
#sheet .deal-reward { background: #2B1E17; color: #fff; }
#sheet .deal-reward span, #sheet .deal-reward small { color: rgba(255,255,255,.75); }
#sheet .cd span { background: #F3EEE9; color: #6B5A4E; }
#sheet .cd b { color: #2B1E17; }
#sheet .btn.drop-btn { background: #2B1E17 !important; color: #fff !important; }
/* Live / live draw indicator: blinking green */
.live-dot { background: #34C759 !important; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: liveBlink 1s ease-in-out infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,199,89,.55); } 50% { opacity: .25; box-shadow: 0 0 0 5px rgba(52,199,89,0); } }

/* ═══ Games: big, easy-to-tap layout ═══ */
@media (min-width: 680px) {
  .sheet-panel.game-panel { width: min(780px, calc(100vw - var(--side-w, 0px) - 48px)) !important; max-width: none !important; max-height: 94vh; padding: 34px 40px 30px; }
}
.game-panel .display { font-size: clamp(30px, 5vw, 40px) !important; }
.game-panel .lead, .game-panel .board-rules { font-size: 14px; line-height: 1.55; }
.game-panel .game-result { margin-top: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.5; }
/* Spin the wheel */
.game-panel .wheel-wrap { width: min(470px, 84vw); height: min(470px, 84vw); margin: 24px auto 12px; }
.game-panel .wheel span i { top: 30px; font-size: clamp(12px, 2.8vw, 16px); }
.game-panel .wheel-pin { top: -16px; margin-left: -17px; border-width: 17px; border-top-width: 32px; }
/* Scratch card */
.game-panel .scratch { width: min(100%, 620px); height: auto; aspect-ratio: 320 / 150; margin: 22px auto 12px; border-radius: 24px; }
.game-panel .scratch-prize { font-size: clamp(32px, 7vw, 56px); }
/* Slot machine */
.game-panel .slot-machine { width: min(100%, 540px); padding: 24px; border-radius: 30px; }
.game-panel .slot-reels { gap: 14px; }
.game-panel .slot-reel { font-size: clamp(56px, 13vw, 100px); border-radius: 22px; }
.game-panel .slot-pull { height: 66px; margin-top: 18px; font-size: 14px; }
.game-panel .paytable { max-width: 580px; gap: 10px 22px; margin-top: 16px; font-size: 12px; }
.game-panel .paytable i { font-size: 18px; }
/* Four in a row + Five in a row */
.game-panel .board.four { width: min(100%, 620px); gap: 9px; padding: 14px; border-radius: 26px; }
.game-panel .board.gomoku { width: min(100%, 680px); padding: 10px; border-radius: 20px; }
.game-panel .board-msg { margin-top: 10px; font-size: 14px; }

/* ═══ Games: sized to fit the screen (no scrolling), not too big, not too small ═══
   About 330px of the pop-up is title, rules and buttons; the game gets the rest of the height. */
.sheet-panel.game-panel { max-height: 96vh; overflow-y: auto; }
@media (min-width: 680px) { .sheet-panel.game-panel { padding: 26px 34px 22px; width: min(700px, calc(100vw - var(--side-w, 0px) - 48px)) !important; } }
.game-panel .display { font-size: clamp(24px, 3.6vh, 34px) !important; }
.game-panel .lead, .game-panel .board-rules { font-size: 14px; line-height: 1.45; margin-top: 6px; }
.game-panel .game-result { margin-top: 10px; padding: 12px 16px; font-size: 14px; }
.game-panel .appt-actions { margin-top: 12px; }
.game-panel .wheel-wrap { width: clamp(220px, min(420px, 84vw, calc(100vh - 330px)), 420px); height: clamp(220px, min(420px, 84vw, calc(100vh - 330px)), 420px); margin: 18px auto 8px; }
.game-panel .wheel span i { top: 22px; font-size: clamp(10px, 1.6vh, 14px); }
.game-panel .scratch { width: clamp(260px, min(100%, 540px, calc((100vh - 330px) * 2.13)), 540px); margin: 16px auto 8px; }
.game-panel .scratch-prize { font-size: clamp(26px, 5vh, 46px); }
.game-panel .slot-machine { width: clamp(260px, min(100%, 480px, calc((100vh - 400px) * 2.2)), 480px); padding: 18px; border-radius: 26px; margin: 14px auto 6px; }
.game-panel .slot-reels { gap: 10px; }
.game-panel .slot-reel { font-size: clamp(40px, 8vh, 84px); border-radius: 18px; }
.game-panel .slot-pull { height: 56px; margin-top: 14px; }
.game-panel .paytable { margin-top: 10px; font-size: 12px; }
.game-panel .paytable i { font-size: 14px; }
.game-panel .board.four { width: clamp(260px, min(100%, 540px, calc((100vh - 340px) * 1.16)), 540px); gap: 7px; padding: 10px; margin: 12px auto 4px; }
.game-panel .board.gomoku { width: clamp(280px, min(100%, 560px, calc(100vh - 330px)), 560px); padding: 8px; margin: 12px auto 4px; }
.game-panel .board-msg { margin-top: 6px; font-size: 14px; }
/* Board games have longer rules text above the board */
.game-panel .board.four { width: clamp(250px, min(100%, 520px, calc((100vh - 440px) * 1.16)), 520px); }
.game-panel .board.gomoku { width: clamp(270px, min(100%, 540px, calc(100vh - 430px)), 540px); }

/* Owner: send game drop by text & email */
.sheet-panel:has(#sendList) { width: min(820px, calc(100vw - 48px)) !important; max-width: none !important; }
#sendMsg { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; text-transform: none; letter-spacing: .02em; font-size: 14px; resize: vertical; }
.send-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.send-actions .btn:disabled { opacity: .45; }
.send-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 8px; }
.send-list { max-height: 34vh; overflow-y: auto; border-top: 1px solid var(--hair); }
.send-row { display: grid; grid-template-columns: 22px 1.3fr 1fr 1.4fr .8fr; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--hair); font-size: 12px; cursor: pointer; }
.send-row input { width: 16px; height: 16px; accent-color: #2B1E17; }
.send-row b { font-weight: 600; letter-spacing: .06em; }
.send-row i { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: #2B1E17; color: #fff; font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.send-row i.no { background: var(--sand); color: var(--muted); }
.send-row span:nth-child(4) { text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-row .sent { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 679px) { .send-row { grid-template-columns: 22px 1fr 1fr; } .send-row span:nth-child(4), .send-row .sent { display: none; } }

/* Staff profile: photo arranger (drag + zoom inside the round frame) */
.crop { position: relative; width: min(320px, 76vw); aspect-ratio: 1; margin: 16px auto 12px; overflow: hidden; border-radius: 24px; background: #2B1E17; cursor: grab; touch-action: none; user-select: none; }
.crop.grab { cursor: grabbing; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255,255,255,.6), inset 0 0 0 2px #fff; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; width: min(320px, 76vw); margin: 0 auto; font-size: 18px; }
.crop-zoom input { flex: 1; accent-color: #2B1E17; }
.prof-upload[hidden] { display: none; }

/* Booking: pick a voucher for this visit */
.vpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.vopt { position: relative; cursor: pointer; }
.vopt input { position: absolute; opacity: 0; pointer-events: none; }
.vopt span { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 14px; background: var(--sand); }
.vopt b { font-weight: 600; font-size: 14px; letter-spacing: .08em; }
.vopt small { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.vopt input:checked + span { background: #2B1E17; color: #fff; }
.vopt input:checked + span small { color: rgba(255,255,255,.75); }
.vopt input:focus-visible + span { outline: 2px solid #2B1E17; outline-offset: 2px; }
/* Staff appointment: voucher the client is bringing */
.appt-voucher { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: #2B1E17; color: #fff; font-size: 12px; letter-spacing: .08em; }
