/* 관리자 화면·관제센터 공통 모양. 휴대폰 폭(375)에서도 쓸 수 있게 했습니다. 색은 남색 바탕 + 분홍 하나. */
@font-face { font-family: "Wanted Sans"; src: url("../fonts/WantedSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Wanted Sans"; src: url("../fonts/WantedSans-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Wanted Sans"; src: url("../fonts/WantedSans-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
:root {
  /* 앱(PROMATCHING_APP/src/constants/theme.ts)과 같은 색과 둥글기 */
  --navy: #0A1022; --panel: #131B33; --raised: #1A2340; --bar: rgba(26, 35, 64, 0.94);
  --line: rgba(255, 255, 255, 0.10); --ink: #F4F6FB; --soft: #C6CDE0; --muted: #A0AAC4;
  --pink: #D1265F; --accent: #E3306F; --pink-light: #FF5C93; --pink-soft: #FFC2D6; --gold: #D4AF6A;
  --good: #7FE0B0; --warn: #FFE9B8; --warn-fill: rgba(255, 176, 32, 0.14); --danger: #FFD0D0; --danger-fill: rgba(255, 90, 90, 0.14);
  --r-sm: 14px; --r-md: 22px; --r-lg: 32px;
  /* 앱의 유리 가장자리: 위쪽 밝은 선 + 아래쪽 옅은 선 + 둘레 0.5px */
  --glass: inset 0 1px 0.5px rgba(255, 255, 255, 0.16), inset 0 -1px 0.5px rgba(255, 255, 255, 0.08), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 85% -10%, rgba(227, 48, 111, 0.10), transparent 60%), var(--navy); color: var(--ink); font-family: "Wanted Sans", "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; border-radius: 8px; }

/* 위쪽 줄: 이름 · 구역(관제 / 연애 / 결혼 / 공통) · 로그아웃 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px clamp(16px, 3vw, 36px); background: rgba(10, 16, 34, 0.82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 0.5px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.brand b { font-weight: 800; font-size: 15px; letter-spacing: 0.08em; }
.brand span { font-size: 14px; font-weight: 600; color: var(--pink-light); }
/* 구역: 앱의 아래 탭 줄과 같은 알약 모양 */
.sections { display: flex; gap: 4px; margin: 0 auto; padding: 5px; border-radius: 999px; background: var(--bar); box-shadow: var(--glass); }
.sections button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: #C2CBE6; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.sections button:hover { color: var(--ink); }
.sections button[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: var(--ink); }
.leave { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.leave:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
/* 남은 일 숫자 */
.sections i, .side i { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--pink); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.sections i[data-zero], .side i[data-zero], .sections i:empty, .side i:empty { display: none; }

/* 구역 안: 왼쪽 메뉴 + 본문. 관제(한눈에 보기)는 메뉴 없이 넓게 */
.frame { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; }
body[data-section="home"] .frame { grid-template-columns: minmax(0, 1fr); }
body[data-section="home"] .side { display: none; }
.side { position: sticky; top: 68px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 68px); padding: 26px 10px 16px clamp(12px, 2vw, 24px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(244, 246, 251, 0.2) transparent; }
.side button { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-weight: 600; color: var(--soft); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.side button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.side button[aria-current="page"] { color: var(--ink); background: var(--raised); box-shadow: var(--glass); }
body[data-section="dating"] .side button[aria-current="page"] { box-shadow: var(--glass), inset 3px 0 0 var(--accent); }
body[data-section="marriage"] .side button[aria-current="page"] { box-shadow: var(--glass), inset 3px 0 0 var(--gold); }
main { min-width: 0; padding: clamp(22px, 3.4vw, 44px) clamp(16px, 3.4vw, 44px) 80px; }
main:focus { outline: none; }
h1 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.04em; }
.sub { margin: 0 0 26px; color: var(--soft); }
h2 { margin: 34px 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile { display: block; width: 100%; padding: 18px 20px; border: 0; border-radius: var(--r-md); background: var(--panel); box-shadow: var(--glass); text-align: left; cursor: pointer; transition: background-color 0.2s ease, transform 0.16s ease; }
button.tile:hover { background: var(--raised); }
button.tile:active { transform: scale(0.98); }
.tile span { display: block; font-size: 14px; font-weight: 600; color: var(--soft); }
.tile strong { display: block; margin-top: 4px; font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tile.hot strong { color: var(--pink-light); }
.card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; margin-bottom: 14px; padding: 18px; border: 0; border-radius: var(--r-md); background: var(--panel); box-shadow: var(--glass); }
.card > img { width: 88px; height: 110px; border-radius: 14px; object-fit: cover; }
.card.plain { grid-template-columns: 1fr; }
.name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.chip { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.pink { background: var(--pink); color: #fff; }
.chip.gold { background: rgba(212, 175, 106, 0.2); color: #E9CB8E; }
.chip.good { background: rgba(127, 224, 176, 0.14); color: var(--good); }
.chip.warn { background: var(--warn-fill); color: var(--warn); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--soft); }
.facts b { font-weight: 600; color: var(--ink); }
.secret { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(212, 175, 106, 0.1); font-size: 15px; }
.secret div { padding: 3px 0; }
.secret span { color: var(--soft); }
.secret b { font-weight: 600; }
.quote { margin: 10px 0 0; padding: 10px 14px; border-left: 2px solid var(--pink-light); background: rgba(255, 255, 255, 0.04); border-radius: 0 12px 12px 0; white-space: pre-wrap; }
.quote small { display: block; margin-bottom: 2px; color: var(--soft); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions button, .actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.10); box-shadow: var(--glass); font-weight: 600; text-decoration: none; cursor: pointer; }
.actions a { color: var(--ink); }
.actions .main { background: var(--pink); color: #fff; box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.28); }
.actions .danger { background: var(--danger-fill); box-shadow: none; color: var(--danger); }
.actions button:active { transform: scale(0.97); }
.empty { padding: 36px 0; color: var(--soft); }
.reject { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.reject > b { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.reject > label:not(.field) { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; cursor: pointer; }
.reject input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); }
.reject .problem { margin: 0; color: #FFB4C8; font-size: 15px; }
.actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.search { width: min(100%, 360px); min-height: 46px; margin-bottom: 14px; padding: 0 16px; border: 1px solid rgba(244, 246, 251, 0.24); border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.rows { border-radius: var(--r-md); background: var(--panel); box-shadow: var(--glass); overflow: hidden; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
/* 금액이 있는 줄: 금액 칸의 자리를 고정해 줄마다 같은 곳에 오게 합니다. */
.row.money { grid-template-columns: 44px minmax(0, 1.4fr) 130px minmax(120px, 0.9fr); }
/* 사진 없는 줄(사전 신청 목록) */
.row.plain { grid-template-columns: minmax(0, 1.4fr) 150px minmax(120px, 0.9fr); }
.row.money .where { text-align: right; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.row .who b { display: block; font-weight: 600; }
.row .who span, .row .where { font-size: 14px; color: var(--soft); }
.row .marks { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.row .marks button.link { min-height: 32px; margin: 0 0 0 6px; font-size: 14px; }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.log time { color: var(--soft); font-variant-numeric: tabular-nums; }
label.field { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 600; }
select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(244, 246, 251, 0.18); border-radius: var(--r-sm); background: var(--raised); color: inherit; font: inherit; }
textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid rgba(244, 246, 251, 0.24); border-radius: 14px; background: rgba(255, 255, 255, 0.05); resize: vertical; }
.pills { display: flex; gap: 8px; margin-bottom: 18px; }
.pills button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(244, 246, 251, 0.2); border-radius: 999px; background: none; font-weight: 600; cursor: pointer; }
.pills button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.16); color: var(--ink); border-color: transparent; box-shadow: var(--glass); }
.pills { flex-wrap: wrap; }
.pills + .pills { margin-top: -8px; }
.pills + .pills button { min-height: 38px; padding: 0 14px; font-size: 14px; }
/* 내부 등급(D~SS): 카드 오른쪽 위 모서리. 색은 금빛 하나로, 높을수록 진하게. */
.card, .person { position: relative; }
.tier { position: absolute; top: -1px; right: -1px; min-width: 48px; padding: 5px 12px 6px; border-radius: 0 20px 0 14px; font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: 0.04em; text-align: center; }
.tier-SS { background: #D4AF6A; color: #1B1A22; }
.tier-S { background: rgba(212, 175, 106, 0.34); color: #F3DDAF; box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.8); }
.tier-A { background: rgba(212, 175, 106, 0.18); color: #E9CB8E; }
.tier-B { background: rgba(244, 246, 251, 0.18); color: var(--ink); }
.tier-C { background: rgba(244, 246, 251, 0.11); color: rgba(244, 246, 251, 0.82); }
.tier-D { background: rgba(244, 246, 251, 0.06); color: var(--soft); }
.card:has(> .tier) .name { padding-right: 44px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px 14px; padding: 16px; border: 0; border-radius: var(--r-md); background: var(--panel); box-shadow: var(--glass); }
.person > img { width: 64px; height: 80px; border-radius: 12px; object-fit: cover; }
.person .who b { display: block; padding-right: 40px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.person .who span { display: block; font-size: 14px; color: var(--soft); }
.person .marks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.people .empty { grid-column: 1 / -1; }
.rule { margin-top: 26px; }
.rule summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.rule .sub { margin: 4px 0 14px; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rule-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rule-row:last-child { border-bottom: 0; }
.rule-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.docs { margin-top: 12px; border-top: 1px solid var(--line); }
.docrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.docrow > b, .docname { flex: 0 0 150px; font-weight: 600; text-align: left; }
.docname { min-height: 44px; padding: 0; border: 0; background: none; color: var(--pink-light); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.docview { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; padding: 6px 0 14px; }
.paper { padding: 18px 20px 20px; border-radius: 10px; background: #F3EFE8; color: #0A1022; }
.paper small { color: rgba(10, 16, 34, 0.62); font-size: 13px; }
.paper h3 { margin: 2px 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.paper div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(10, 16, 34, 0.14); font-size: 15px; }
.paper div b { font-weight: 600; }
.compare { align-self: start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.compare small { display: block; margin-bottom: 4px; color: var(--soft); font-size: 13px; }
.compare b { font-weight: 600; }
/* 상담 요청: 연락처 보기 버튼, 카카오톡 버튼, 순서 안내 */
.eye { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: -8px 0 -8px 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); vertical-align: middle; cursor: pointer; }
.eye:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.eye[aria-pressed="true"] { color: var(--ink); }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.actions .kakao { background: #FEE500; color: #191600; }
/* 회원이 카카오톡 대화를 연 상담 요청: 밝게 */
.card.awake { background: #1E2A4D; box-shadow: var(--glass), 0 0 0 1.5px rgba(127, 224, 176, 0.7), 0 18px 50px -24px rgba(127, 224, 176, 0.55); }
.plainlink { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.steps { margin: 6px 0 22px; padding: 0 0 0 22px; color: var(--soft); font-size: 15px; }
.steps li { padding: 4px 0; }
.rule + .card, .rule + .empty { margin-top: 16px; }
/* 신고된 대화와 글 */
.quote b { display: block; font-weight: 600; }
/* 글자처럼 보이는 버튼(밑줄). 어디에 놓여도 같은 모양이 되게 합니다. */
button.link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--pink-light); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.quote.post { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.quote.post img { width: 56px; height: 70px; border-radius: 10px; object-fit: cover; }
.shot { position: relative; width: 190px; margin: 10px 0 2px; border-radius: 14px; overflow: hidden; background: #0A1022; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: blur(26px) brightness(0.7); transform: scale(1.25); }
.shot.open img { filter: none; transform: none; }
.shot button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: rgba(10, 16, 34, 0.35); color: #fff; font-weight: 600; cursor: pointer; }
.talk p.pic { font-weight: 600; font-style: normal; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.talk { display: grid; gap: 6px; margin-top: 10px; padding: 14px; border-radius: 14px; background: rgba(10, 16, 34, 0.6); white-space: normal; }
.talk p { justify-self: start; max-width: 80%; margin: 0; padding: 8px 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); font-size: 15px; }
.talk p.t { justify-self: end; background: rgba(209, 38, 95, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 92, 147, 0.5); }
.talk small { margin: 6px 0 0; }
.talk small.t { justify-self: end; color: #FFB4C8; }
.talk small.keep { margin-top: 10px; }
/* 매칭: 두 사람과 적합도 */
.card.duo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; }
.duo .facts { margin-top: 14px; }
.duo-side { flex-wrap: nowrap; align-items: center; gap: 20px; margin-top: 0; }
.duo-side .main { min-height: 48px; padding: 0 26px; }
.duo-people { display: flex; flex-wrap: wrap; gap: 12px 30px; min-width: 0; }
.duo-one { display: flex; align-items: center; gap: 12px; min-width: 0; }
.duo-one img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.duo-one b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.duo-one span:not(.chip) { display: block; font-size: 14px; color: var(--soft); }
.duo-score { flex: 0 0 auto; text-align: right; white-space: nowrap; color: var(--soft); font-weight: 600; }
.duo-score strong { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 관제센터 */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.box { padding: 20px 22px; border-radius: var(--r-md); background: var(--panel); box-shadow: var(--glass); }
.box h2 { margin-top: 0; }
.job { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.job:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(127, 224, 176, 0.14); }
.dot.late { background: #FFC56B; box-shadow: 0 0 0 4px var(--warn-fill); }
.job small { display: block; color: var(--soft); font-size: 13px; }
.job time { color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { display: block; width: 100%; height: auto; }
.bars rect { fill: rgba(255, 92, 147, 0.42); }
.bars rect.now { fill: var(--pink-light); }
.bars text { fill: var(--soft); font-size: 11px; font-family: inherit; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--good); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.3; } }
@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding: 10px 16px; }
  .brand span { display: none; }
  .sections { order: 3; flex: 1 0 100%; margin: 0; }
  .sections button { flex: 1 1 0; justify-content: center; min-height: 40px; padding: 0 8px; }
  .leave { margin-left: auto; }
  .frame { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; max-height: none; padding: 12px 16px 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side button { white-space: nowrap; min-height: 40px; border-radius: 999px; }
  body[data-section] .side button[aria-current="page"] { box-shadow: var(--glass); }
  .row.money { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .row.plain { grid-template-columns: minmax(0, 1fr); }
  .row.plain .marks { grid-column: 1; }
  .row.plain .where { display: block; }
  .row.money .where { display: block; }
  .row.money .marks { grid-column: 2 / -1; }
  .card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .card > img { width: 64px; height: 80px; }
  .row { grid-template-columns: 44px minmax(0, 1fr); }
  .row .where { display: none; }
  .row .marks { grid-column: 2; justify-content: flex-start; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .grid2 { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .docview { grid-template-columns: 1fr; }
  .card.duo { grid-template-columns: 1fr; }
  .duo-side { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

/* 문의 탭: 카카오톡 채널·이메일로 직접 온 문의를 적어 두는 접이식 칸 */
details.box { padding: 4px 20px; }
details.box[open] { padding-bottom: 20px; }
details.box > summary { display: flex; align-items: center; min-height: 52px; font-weight: 600; cursor: pointer; }
details.box input[type="text"], input.line { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(244, 246, 251, 0.24); border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
details.box fieldset.reject { display: flex; flex-wrap: wrap; gap: 4px 18px; }
details.box fieldset.reject legend { width: 100%; padding: 0; font-size: 14px; }

/* 원본을 지운 서류는 누를 수 없습니다(확인 기록만 남음) */
.docname:disabled { opacity: 0.6; cursor: default; text-decoration: none; }

/* 관제(한눈에 보기) */
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lane { padding: 18px; border-radius: var(--r-lg); background: rgba(19, 27, 51, 0.55); box-shadow: var(--glass); }
.lane.ops { margin-top: 14px; }
.lane .tiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.lane .tile strong { font-size: 32px; }
.lane .tile span { font-size: 13.5px; }
.lane .tile { background: var(--raised); }
.lane .tile:hover { background: #222C4D; }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 2px 4px 14px; }
.lane-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.lane-head h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.lane.dating .lane-head h2::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(227, 48, 111, 0.18); }
.lane.marriage .lane-head h2::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 106, 0.18); }
.lane-sum { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.watch-grid .box h2 { margin: 0 0 2px; }
.watch-grid .sub { margin-bottom: 10px; font-size: 15px; }
.sub.hot { color: #FFC56B; }
button.job { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
button.job:last-child { border-bottom: 0; }
button.job:hover div { color: var(--pink-soft); }
@media (prefers-reduced-motion: reduce) { .tile, .sections button, .side button { transition: none; } button.tile:active { transform: none; } }
button.job .go { color: var(--muted); font-size: 20px; line-height: 1; }
@media (max-width: 860px) {
  .lanes { grid-template-columns: 1fr; }
  .lane { padding: 14px; border-radius: var(--r-md); }
  .lane .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane .tile { padding: 14px 16px; }
}
button.job { display: grid; min-height: 52px; color: var(--ink); }
button.job small { margin-top: 1px; }
