/* 아옴 시네마: 서비스 화면 시안. 고객, 업체, 작업자, 관리자.
   한 화면에 한 장면씩: 조명 세 개, 일정 필름, 일급 입장권, 빛줄기.
   작업자 탭만 낮의 화면이다. 야외에서 폰으로 보므로 흰 바탕에 검은 글자로 대비를 최대로 올린다. */

:root {
  color-scheme: dark only;
  --bg: #0E0F11;
  --bg-2: #16171A;
  --bg-3: #202125;
  --rule: #3A3B40;
  --field: #85827B;
  --accent: #FFD9A8;
  --on-accent: #1B130A;
  --sun: #FFD9A8;
  --sun-2: #FFCC8C;
  --fg: #F5EFE6;
  --fg-2: #C9C3B8;
  --fg-3: #A8A297;
  --lit: #FBEBD6;
  --ink: #17140F;
  --ink-2: #51483B;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 0 0 34px 8px rgba(255, 217, 168, .55), 0 0 100px 30px rgba(255, 217, 168, .2);
}
/* 낮의 화면 */
html[data-role="worker"] {
  color-scheme: light only;
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --bg-3: #F4EEE3;
  --rule: #000000;
  --field: #000000;
  --accent: #000000;
  --on-accent: #FFFFFF;
  --fg: #000000;
  --fg-2: #111111;
  --fg-3: #222222;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); transition: background-color .5s; }
body {
  margin: 0; min-width: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: -.005em;
  color: var(--fg); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s, color .3s;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
i, em { font-style: normal; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.m-only { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 위쪽 띠와 탭 ---------- */
.sx-top {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  min-height: 72px; padding: 0 var(--gutter);
  background: var(--bg); border-bottom: 1px solid var(--rule);
  transition: background-color .5s;
}
.sx-brand { display: contents; }
.sx-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 24px; font-weight: 700; text-decoration: none; }
.sx-note { grid-column: 3; grid-row: 1; justify-self: end; font-size: 14px; line-height: 1.5; color: var(--fg-2); text-align: right; }
.sx-tabs { grid-column: 2; grid-row: 1; display: flex; gap: 4px; }
.sx-tabs button {
  position: relative; min-height: 48px; min-width: 72px; padding: 0 18px;
  border: 0; background: none; font-size: 18px; font-weight: 500; color: var(--fg-2); white-space: nowrap;
  transition: color .2s;
}
.sx-tabs button:hover { color: var(--fg); }
.sx-tabs button[aria-selected="true"] { color: var(--fg); font-weight: 600; }
.sx-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px;
  background: var(--accent); box-shadow: 0 0 14px 2px rgba(255, 217, 168, .75);
}
html[data-role="worker"] .sx-tabs button[aria-selected="true"]::after { height: 4px; box-shadow: none; }

.panel { padding: 0 var(--gutter) 96px; animation: panel-in .55s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.kick { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--fg-2); }
.kick b { font-weight: 600; color: var(--accent); }

/* 작은 조명 */
.dots { display: inline-flex; gap: 6px; flex: none; vertical-align: middle; }
.dots u { display: block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--fg-3); text-decoration: none; }
.dots u.f { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 10px 2px rgba(255, 217, 168, .6); }

/* ---------- 고객: 조명 세 개 아래 제안 세 장 ---------- */
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: end; padding-top: clamp(28px, 5vh, 56px); }
.c-head .kick { grid-column: 1 / -1; }
.c-head h1 { font-size: clamp(40px, 6vw, 92px); line-height: 1.08; letter-spacing: -.02em; }
.c-lead { grid-column: 1; display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 18px; color: var(--fg-2); }
.c-time { grid-column: 2; grid-row: 2 / 4; align-self: end; text-align: right; font-size: 16px; color: var(--fg-2); }
.c-time b { display: block; font-size: 22px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.lens { display: flex; align-items: center; gap: 4px; margin-top: 32px; }
.lens > span { margin-right: 14px; font-size: 16px; color: var(--fg-2); }
.lens button { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); background: transparent; color: var(--fg-2); font-size: 16px; font-weight: 500; transition: background-color .2s, color .2s; }
.lens button:hover { color: var(--fg); }
.lens button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--on-accent); font-weight: 600; }

.trio { --ring: 76px; --cord: 36px; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 32px); border-top: 1px solid var(--rule); }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: var(--cord); }
.seat::before {
  content: ""; position: absolute; left: -4%; right: -4%; top: calc(var(--cord) + var(--ring) * .5); height: 240px;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 217, 168, .5), rgba(255, 217, 168, .1) 80%);
  transition: opacity .5s; pointer-events: none;
}
.lamp {
  position: relative; z-index: 2; flex: none; width: var(--ring); height: var(--ring); border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--on-accent);
  font-size: 26px; font-weight: 600; line-height: 1; box-shadow: var(--glow);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.lamp::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--cord); background: var(--field); }
.bid { position: relative; z-index: 1; flex: 1; width: 100%; margin-top: 92px; display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--lit); color: var(--ink); transition: background-color .35s; }
.bid-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bid h2 { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.01em; }
.biz { flex: none; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bid-price { margin-top: 10px; font-size: clamp(44px, 4.6vw, 72px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.bid-price-note { min-height: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bid dl { margin: 12px -28px 0; flex: 1; }
.r { min-height: 78px; padding: 10px 28px; border-top: 1px solid rgba(23, 20, 15, .2); transition: background-color .25s; }
.r dt { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.r dd { font-size: 17px; font-weight: 600; line-height: 1.4; }
.trio[data-lens="in"] .r-in, .trio[data-lens="fee"] .r-fee, .trio[data-lens="crew"] .r-crew, .trio[data-lens="num"] .r-num { background: var(--sun); }
.trio[data-lens="in"] .r-in dt, .trio[data-lens="fee"] .r-fee dt, .trio[data-lens="crew"] .r-crew dt, .trio[data-lens="num"] .r-num dt { color: var(--ink); }
.bid-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; }
.b-main { min-height: 56px; padding: 0 14px; border: 0; background: var(--ink); color: var(--lit); font-size: 17px; font-weight: 600; white-space: nowrap; }
.b-main:hover { background: #000; }
.b-out { min-height: 56px; min-width: 72px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; }
.b-out:hover { background: var(--ink); color: var(--lit); }
.bid-off { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 240px; }
.bid-off b { font-size: 22px; font-weight: 600; }
.bid-off p { color: var(--fg-2); }
.bid-off button { margin-top: 12px; min-height: 48px; padding: 0 18px; border: 1px solid var(--fg-2); background: transparent; color: var(--fg); font-weight: 600; }
.bid-off button:hover { background: var(--fg); color: var(--bg); }
/* 뺀 업체: 조명이 꺼지고 면이 어두워진다 */
.seat.is-out::before { opacity: 0; }
.seat.is-out .lamp { background: var(--bg-3); color: var(--fg-3); box-shadow: none; }
.seat.is-out .bid { background: var(--bg-2); color: var(--fg); outline: 1px solid var(--rule); outline-offset: -1px; }

.c-closed { display: flex; align-items: center; gap: 12px 24px; margin-top: 24px; padding: 16px 0 0; border-top: 1px solid var(--sun); box-shadow: 0 -6px 14px -10px rgba(255, 217, 168, .8); color: var(--fg-2); }
.c-closed b { font-weight: 600; color: var(--fg); white-space: nowrap; }

/* 금액 한 줄 비교: 점 도표. 같은 눈금 위에 세 곳을 놓는다 */
.axis { margin-top: 64px; }
.axis h2 { font-size: clamp(24px, 2.4vw, 32px); }
.axis-note { margin-top: 4px; color: var(--fg-2); }
.ax-grid { margin-top: 20px; display: grid; grid-template-columns: 130px minmax(0, 1fr) 220px; gap: 0 20px; align-items: center; }
.ax-scale { grid-column: 2; grid-row: 1; position: relative; height: 28px; }
.ax-name { grid-column: 1; }
.ax-track { grid-column: 2; }
.ax-val { grid-column: 3; }
[data-ax="0"] { grid-row: 2; }
[data-ax="1"] { grid-row: 3; }
[data-ax="2"] { grid-row: 4; }
.ax-scale span { position: absolute; bottom: 4px; font-size: 14px; line-height: 1.5; color: var(--fg-3); transform: translateX(-50%); }
.ax-scale span:first-child { transform: none; }
.ax-scale span:last-child { transform: translateX(-100%); }
.ax-name { font-size: 16px; font-weight: 600; }
.ax-track { position: relative; height: 48px; background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat; }
.ax-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 14px 3px rgba(255, 217, 168, .6), 0 0 0 2px var(--bg); }
.ax-band { position: absolute; top: 50%; height: 12px; margin-top: -6px; background: rgba(255, 217, 168, .42); border-left: 2px solid var(--sun); border-right: 2px solid var(--sun); }
.ax-val { font-size: 16px; font-weight: 600; text-align: right; }
.ax-val small { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.is-off { opacity: .55; }

/* ---------- 업체: 한 주가 필름 한 줄 ---------- */
.b-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; padding-top: clamp(28px, 5vh, 56px); }
.b-head h1 { font-size: clamp(34px, 5.2vw, 80px); line-height: 1.12; letter-spacing: -.02em; }
.b-who { text-align: right; }
.b-who b { display: block; font-size: 20px; font-weight: 600; }
.b-who span { font-size: 14px; color: var(--fg-2); }
.b-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.b-nav button { min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; font-size: 16px; color: var(--fg-2); }
.b-nav button:hover { color: var(--fg); }
.b-nav button[aria-current] { color: var(--sun); font-weight: 600; }

.strip { position: relative; margin: 20px calc(var(--gutter) * -1) 0; padding: 30px var(--gutter); background: #050506; }
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, #2E2F34 0 16px, transparent 16px 38px);
}
.strip::before { top: 9px; }
.strip::after { bottom: 9px; }
.frames { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.frame { position: relative; display: flex; flex-direction: column; min-height: clamp(180px, 25vh, 240px); padding: 14px 16px; background: var(--bg-3); transition: background-color .35s, box-shadow .35s, color .35s; }
.f-day { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--fg-2); }
.f-date { font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.f-what { margin-top: auto; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.frame.is-empty { background: #121316; }
.frame.is-empty .f-what { color: var(--fg-3); }
.frame.is-target { z-index: 1; background: var(--sun); color: var(--on-accent); box-shadow: 0 0 70px 14px rgba(255, 217, 168, .42); }
.frame.is-target .f-day, .frame.is-target .f-what { color: var(--on-accent); }
.frame.is-target .f-what { font-weight: 600; }
.frame.is-clash { outline: 2px solid var(--sun); outline-offset: -2px; }
.strip-note { margin-top: 14px; font-size: 16px; color: var(--fg-2); }
.strip-note b { font-weight: 600; color: var(--sun); }

.b-work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); margin-top: 48px; align-items: start; }
.sec-t { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 12px; }
.req-btn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center;
  width: 100%; padding: 18px 20px; text-align: left; border: 0; border-top: 1px solid var(--rule); background: transparent;
  transition: background-color .25s;
}
.reqs li:last-child .req-btn { border-bottom: 1px solid var(--rule); }
.req-btn:hover { background: var(--bg-2); }
.req-btn[aria-pressed="true"] { background: var(--bg-3); box-shadow: inset 3px 0 0 var(--sun); }
.req-name { font-size: 22px; font-weight: 600; line-height: 1.3; }
.req-sub { grid-column: 1; font-size: 16px; color: var(--fg-2); }
.req-seat { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
.req-cal { grid-column: 2; grid-row: 2; justify-self: end; font-size: 14px; font-weight: 600; color: var(--sun); white-space: nowrap; }
.req-cal.is-busy { font-weight: 500; color: var(--fg-2); }

.hire { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; margin-top: 32px; padding: 20px; background: var(--bg-2); }
.hire-pay { font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.hire b { font-weight: 600; }
.hire p span { display: block; font-size: 16px; color: var(--fg-2); }
.line-btn { min-height: 48px; padding: 0 18px; border: 1px solid var(--field); background: transparent; color: var(--fg); font-size: 16px; font-weight: 600; white-space: nowrap; }
.line-btn:hover { background: var(--bg-3); }

.pitch { padding: 28px; background: var(--bg-2); }
.pitch h2 { font-size: 24px; }
.pitch-sub { margin-top: 4px; color: var(--fg-2); }
.field { margin-top: 20px; }
.field > label, .field > .f-label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.money { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--sun); }
.money input { width: 100%; min-width: 0; min-height: 76px; padding: 0; border: 0; background: transparent; font-size: 68px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--fg); }
.money input:focus-visible { outline: 0; }
.money:focus-within { box-shadow: 0 6px 18px -8px rgba(255, 217, 168, .9); }
.money span { flex: none; font-size: 24px; font-weight: 600; }
.txt { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--field); border-radius: 0; background: var(--bg); font-size: 16px; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 0 14px; border: 1px solid var(--field); background: transparent; color: var(--fg-2); font-size: 16px; transition: background-color .2s, color .2s; }
.chips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.go { width: 100%; min-height: 60px; margin-top: 24px; border: 0; background: var(--sun); color: var(--on-accent); font-size: 18px; font-weight: 600; box-shadow: 0 0 40px rgba(255, 217, 168, .26); transition: background-color .15s, box-shadow .3s; }
.go:hover { background: var(--sun-2); box-shadow: 0 0 64px rgba(255, 217, 168, .5); }
.pitch-note { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* ---------- 작업자: 낮의 화면, 일급 입장권 ---------- */
.w-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding-top: clamp(24px, 4vh, 44px); }
.w-head h1 { font-size: clamp(36px, 4.6vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.w-head .kick { color: #000; font-weight: 600; }
.w-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.w-filter button { min-height: 52px; padding: 0 18px; border: 2px solid #000; background: #fff; color: #000; font-size: 18px; font-weight: 600; }
.w-filter button[aria-pressed="true"] { background: #000; color: #fff; }

.w-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); margin-top: 28px; align-items: start; }
.jobs { display: grid; gap: 10px; }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline;
  width: 100%; padding: 16px 18px; text-align: left; border: 2px solid #000; background: #fff; color: #000;
}
.job:hover { background: var(--bg-3); }
.job[aria-pressed="true"] { background: var(--sun); box-shadow: 6px 6px 0 #000; }
.job-date { font-size: 18px; font-weight: 700; line-height: 1.35; }
.job-pay { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.job-pay small { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.job-what { font-size: 18px; font-weight: 600; line-height: 1.4; }
.job-where { grid-column: 1 / -1; font-size: 16px; font-weight: 500; line-height: 1.5; color: #111; }

.ticket { position: sticky; top: 92px; overflow: hidden; background: var(--sun); color: #000; }
.t-main { padding: clamp(20px, 2.6vw, 36px); }
.t-kick { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.t-pay { margin-top: 10px; font-size: clamp(76px, 9.4vw, 148px); font-weight: 700; letter-spacing: -.03em; line-height: .98; white-space: nowrap; }
.t-pay small { font-size: .32em; font-weight: 700; letter-spacing: -.01em; }
.t-rows { margin-top: 20px; }
.t-rows > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 2px solid #000; }
.t-rows dt { font-size: 18px; font-weight: 600; line-height: 1.45; }
.t-rows dd { font-size: 20px; font-weight: 700; line-height: 1.4; }
.t-stub { position: relative; padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.6vw, 36px); border-top: 3px dashed #000; }
/* 절취선 양쪽의 홈 */
.t-stub::before, .t-stub::after { content: ""; position: absolute; top: -19px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); }
.t-stub::before { left: -18px; }
.t-stub::after { right: -18px; }
.t-apply { width: 100%; min-height: 72px; border: 0; background: #000; color: #fff; font-size: 24px; font-weight: 700; }
.t-apply:hover { background: #222; }
.t-apply.is-done { background: #fff; color: #000; outline: 3px solid #000; outline-offset: -3px; }
.t-note { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.w-back { display: none; }
.w-law { margin-top: 24px; font-size: 16px; font-weight: 500; color: #111; }

/* ---------- 관리자: 빛줄기 ---------- */
.a-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: end; padding-top: clamp(28px, 5vh, 56px); }
.a-head .kick { grid-column: 1 / -1; }
.a-head h1 { font-size: clamp(34px, 5vw, 76px); line-height: 1.12; letter-spacing: -.02em; }
.a-big { grid-column: 2; grid-row: 2; text-align: right; }
.a-big b { display: block; font-size: clamp(88px, 13vw, 200px); font-weight: 600; letter-spacing: -.03em; line-height: .95; color: var(--sun); text-shadow: 0 0 60px rgba(255, 217, 168, .45); }
.a-big span { font-size: 16px; color: var(--fg-2); }

.beam-wrap { margin-top: 36px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 16px; }
.b-stages { grid-column: 2; grid-row: 1; position: relative; height: 92px; }
.b-stage { position: absolute; top: 0; }
.b-stage span { display: block; font-size: 16px; color: var(--fg-2); line-height: 1.4; }
.b-stage b { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.b-stage em { font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.b-stage:last-child { transform: translateX(-100%); text-align: right; }
.b-stage:nth-child(2), .b-stage:nth-child(3) { transform: translateX(-50%); text-align: center; }
.srcs { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: 42fr 30fr 18fr 10fr; gap: 0; height: var(--beam-h); }
.src { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-top: 1px solid var(--bg); background: var(--bg-2); color: var(--fg-2); font-size: 16px; text-align: left; transition: background-color .25s, color .25s; }
.src b { font-weight: 600; }
.src:hover { color: var(--fg); background: var(--bg-3); }
.src[aria-pressed="true"] { background: var(--sun); color: var(--on-accent); }
.beam { --beam-h: 460px; display: contents; }
.beam-svg { grid-column: 2; grid-row: 2; display: block; width: 100%; height: var(--beam-h); }
.beam-svg.v { display: none; }
.band { transition: fill-opacity .35s; cursor: pointer; }

.a-low { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); margin-top: 56px; align-items: start; }
.stuck { font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; }
.stuck-sub { margin-top: 12px; color: var(--fg-2); font-size: 16px; }
.a-rows { display: grid; }
.a-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 68px 92px; gap: 16px; align-items: center; min-height: 56px; border-top: 1px solid var(--rule); }
.a-row:last-child { border-bottom: 1px solid var(--rule); }
.a-row.head { min-height: 36px; font-size: 14px; color: var(--fg-3); border-top: 0; }
.a-row b { font-weight: 600; }
.a-row .n { text-align: right; color: var(--fg-2); }
.a-row .rate { text-align: right; font-weight: 600; }
.a-bar { height: 10px; background: var(--bg-3); }
.a-bar i { display: block; height: 100%; background: rgba(255, 217, 168, .35); transition: background-color .3s; }
.a-row.is-on .a-bar i { background: var(--sun); box-shadow: 0 0 12px rgba(255, 217, 168, .6); }
.a-row.is-on b { color: var(--sun); }
.a-note { margin-top: 12px; font-size: 14px; color: var(--fg-2); }

/* ---------- 푸터, 안내 ---------- */
.sx-foot { padding: 40px var(--gutter) 56px; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.sx-law { font-size: 16px; font-weight: 600; color: var(--fg); }
.sx-foot p:not(.sx-law) { font-size: 14px; color: var(--fg-2); }
.sx-foot a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--accent); text-underline-offset: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); width: max-content; padding: 12px 20px; background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; transform: translateX(-50%); }

/* ---------- 좁은 PC: 머리띠 안내를 줄인다 ---------- */
@media (max-width: 1239.98px) {
  .sx-top { grid-template-columns: auto minmax(0, 1fr); }
  .sx-note { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; padding-bottom: 10px; }
  .sx-tabs { justify-self: end; }
  .sx-tabs button[aria-selected="true"]::after { bottom: 0; }
}

/* ---------- 폰과 세로 태블릿: 배치를 따로 짠다 ---------- */
@media (max-width: 999.98px) {
  .m-only { display: inline; }
  .pc-only { display: none; }
  .sx-top { display: contents; }
  .sx-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 6px var(--gutter) 8px; }
  .sx-note { flex: 1 1 100%; padding: 0; font-size: 14px; }
  .sx-tabs {
    position: sticky; top: 0; z-index: 40; justify-self: stretch;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    transition: background-color .5s;
  }
  .sx-tabs button { min-width: 0; min-height: 52px; padding: 0 2px; font-size: 17px; }
  .sx-tabs button[aria-selected="true"]::after { left: 16%; right: 16%; bottom: -1px; }
  .panel { padding-bottom: 72px; }

  /* 고객: 고른 항목만 펼쳐 세 곳을 한 화면에서 견준다 */
  .c-head { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .c-head h1 { font-size: clamp(38px, 10.6vw, 72px); }
  .c-lead { align-items: flex-start; gap: 10px; font-size: 16px; }
  .c-lead .dots { margin-top: 6px; }
  .c-time { grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; text-align: left; margin-top: 4px; }
  .c-time b { display: inline; font-size: 16px; }
  .lens { flex-wrap: wrap; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; gap: 4px; }
  .lens > span { grid-column: 1 / -1; margin: 0; font-size: 14px; }
  .lens button { padding: 0 2px; font-size: 15px; white-space: nowrap; }
  .trio { --ring: 44px; --cord: 0px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; border-top: 0; }
  .seat { display: grid; grid-template-columns: var(--ring) minmax(0, 1fr); gap: 12px; align-items: start; padding: 0; }
  .seat::before { left: 0; right: auto; top: calc(var(--ring) / 2); bottom: -12px; width: calc(var(--ring)); height: auto; clip-path: none; background: linear-gradient(90deg, transparent calc(50% - .5px), var(--rule) calc(50% - .5px), var(--rule) calc(50% + .5px), transparent calc(50% + .5px)); }
  .seat:last-child::before { display: none; }
  .seat.is-out::before { opacity: 1; }
  .lamp { font-size: 18px; margin-top: 6px; box-shadow: 0 0 18px 4px rgba(255, 217, 168, .5), 0 0 50px 14px rgba(255, 217, 168, .18); }
  .lamp::before { display: none; }
  .bid { margin: 0; padding: 14px 16px 12px; }
  .bid h2 { font-size: 18px; }
  .bid-price { margin-top: 4px; font-size: 40px; }
  .bid-price-note { min-height: 0; font-size: 14px; }
  .bid-price-note:empty { display: none; }
  .bid dl { margin: 8px -16px 0; }
  /* 폰은 고른 항목 하나만 */
  .r { display: none; min-height: 0; padding: 8px 16px; border-top: 0; }
  .trio[data-lens="in"] .r-in, .trio[data-lens="fee"] .r-fee, .trio[data-lens="crew"] .r-crew, .trio[data-lens="num"] .r-num { display: block; }
  .r dd { font-size: 16px; }
  .bid-act { margin-top: 10px; }
  .b-main, .b-out { min-height: 48px; }
  .b-main { font-size: 16px; }
  .bid-off { min-height: 120px; }
  .bid-off button { margin-top: 6px; min-height: 44px; }
  .c-closed { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 20px; }
  .c-closed b { white-space: normal; }
  .axis { margin-top: 40px; }
  .ax-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; margin-top: 14px; }
  .ax-scale { grid-column: 1 / -1; grid-row: 1; }
  .ax-name { grid-column: 1; }
  .ax-val { grid-column: 2; }
  .ax-track { grid-column: 1 / -1; height: 32px; margin-bottom: 10px; }
  [data-ax="0"].ax-name, [data-ax="0"].ax-val { grid-row: 2; }
  [data-ax="0"].ax-track { grid-row: 3; }
  [data-ax="1"].ax-name, [data-ax="1"].ax-val { grid-row: 4; }
  [data-ax="1"].ax-track { grid-row: 5; }
  [data-ax="2"].ax-name, [data-ax="2"].ax-val { grid-row: 6; }
  [data-ax="2"].ax-track { grid-row: 7; }

  /* 업체: 필름은 칸만 남기고, 내용은 아래 줄에 쓴다 */
  .b-head { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 20px; }
  .b-head h1 { font-size: clamp(34px, 9.4vw, 64px); }
  .b-who { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; text-align: left; }
  .b-who b { font-size: 16px; }
  .b-nav { gap: 0 12px; }
  .strip { margin-top: 8px; padding: 24px var(--gutter); }
  .strip::before, .strip::after { height: 8px; background: repeating-linear-gradient(90deg, #2E2F34 0 10px, transparent 10px 24px); }
  .strip::before { top: 8px; }
  .strip::after { bottom: 8px; }
  .frames { gap: 3px; }
  .frame { min-height: 88px; padding: 8px 0; align-items: center; }
  .f-day { font-size: 14px; }
  .f-date { font-size: 24px; }
  .f-what { display: none; }
  .frame:not(.is-empty):not(.is-target)::after { content: ""; display: block; width: 18px; height: 3px; margin-top: auto; background: var(--fg-2); }
  .strip-note { margin-top: 12px; }
  .b-work { grid-template-columns: minmax(0, 1fr); margin-top: 28px; gap: 32px; }
  .req-btn { padding: 14px 12px; gap: 2px 12px; }
  .req-name { font-size: 18px; }
  .req-sub { grid-column: 1 / -1; }
  .req-seat { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 4px; }
  .req-cal { grid-column: 2; grid-row: 1; }
  .hire { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .hire-pay { font-size: 28px; }
  .pitch { padding: 20px 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .money input { font-size: 60px; min-height: 68px; }

  /* 작업자: 목록 → 입장권. 한 번에 한 화면만, 큰 글자로 */
  .w-head { padding-top: 18px; }
  .w-head h1 { font-size: clamp(34px, 9.6vw, 60px); }
  .w-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .w-filter button { padding: 0 2px; font-size: 16px; white-space: nowrap; }
  .w-wrap { grid-template-columns: minmax(0, 1fr); margin-top: 16px; gap: 0; }
  .job { padding: 14px; gap: 4px 12px; }
  .job-date { grid-column: 1 / -1; font-size: 20px; }
  .job-what { grid-column: 1; grid-row: 2; align-self: center; }
  .job-pay { grid-column: 2; grid-row: 2; font-size: 38px; }
  .job-pay small { display: inline; margin-right: 4px; font-size: 15px; }
  .job[aria-pressed="true"] { background: #fff; box-shadow: none; }
  .ticket { position: static; display: none; }
  .p-worker.is-detail .ticket { display: block; }
  .p-worker.is-detail .jobs, .p-worker.is-detail .w-head { display: none; }
  .w-back { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0; margin-top: 8px; border: 0; background: none; font-size: 18px; font-weight: 700; color: #000; }
  .p-worker:not(.is-detail) .w-back { display: none; }
  .t-pay { font-size: min(calc((100vw - 80px) / 3.4), 150px); }
  .t-pay small { display: block; margin-bottom: 4px; font-size: 22px; letter-spacing: 0; line-height: 1.3; }
  .t-rows > div { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .t-apply { min-height: 76px; }

  /* 관리자: 빛줄기가 위에서 아래로 좁아진다 */
  .a-head { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .a-head h1 { font-size: clamp(32px, 8.8vw, 60px); }
  .a-big { grid-column: 1; grid-row: auto; text-align: left; margin-top: 12px; }
  .a-big b { font-size: 112px; }
  .beam-wrap { display: block; margin-top: 24px; }
  .beam { --beam-h: 520px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 8px; }
  .srcs { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; height: auto; margin-bottom: 20px; }
  .src { min-height: 52px; border-top: 0; }
  .b-stages { grid-column: 1; grid-row: 2; height: var(--beam-h); }
  .b-stage, .b-stage:last-child, .b-stage:nth-child(2), .b-stage:nth-child(3) { position: absolute; left: 0 !important; transform: translateY(0); text-align: left; }
  .b-stage:nth-child(1) { top: 0; }
  .b-stage:nth-child(2) { top: 33.33% !important; transform: translateY(-40%); }
  .b-stage:nth-child(3) { top: 66.66% !important; transform: translateY(-40%); }
  .b-stage:nth-child(4) { top: auto; bottom: 0; }
  .b-stage b { font-size: 28px; }
  .beam-svg.h { display: none; }
  .beam-svg.v { display: block; grid-column: 2; grid-row: 2; }
  .a-low { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 28px; }
  .a-row { grid-template-columns: minmax(0, 1fr) 56px 76px; gap: 10px; }
  .a-row .a-bar { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .a-row.head .a-bar-h { display: none; }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .bid-price { font-size: 56px; }
  .sx-tabs button { font-size: 18px; }
}
@media (max-width: 359.98px) {
  .lens button { font-size: 14px; }
  .bid-price { font-size: 36px; }
}
