/* 의뢰인 포털 — ＋판·자료 보내기 시트·내 요청 (P4)
   색은 포털 토큰(--bg --card --text --sub --line --accent …)을 그대로 쓰고, 없을 때만 아래 값으로 대신한다.
   CSP 때문에 인라인 style 은 쓰지 않는다 — 이 파일과 JS 의 el.style 만. */
.ps, .rq-card, .rq-list, .rq-one, .ps-overlay, .ps-toast {
  --ps-bg: var(--bg, #f4f4f1); --ps-card: var(--card, #fff); --ps-text: var(--text, #1d1f24); --ps-sub: var(--sub, #6b6f78);
  --ps-line: var(--line, rgba(0,0,0,.09)); --ps-acc: var(--accent, #2f3b8f); --ps-on: var(--accent-text, #fff);
  --ps-green: var(--green, #1f8a5b); --ps-red: var(--red, #c23b3b); --ps-amber: var(--amber, #a86a12);
  --ps-blue: var(--blue, #3b7bd6); --ps-purple: var(--purple, #7b52c0); --ps-lime: #4f8f1a;
  --ps-soft: color-mix(in srgb, var(--ps-acc) 9%, transparent);
  --ps-fill: color-mix(in srgb, var(--ps-text) 5%, var(--ps-card));
  --ps-r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.ps, .rq-card, .rq-list, .rq-one, .ps-overlay, .ps-toast) {
    --ps-bg: var(--bg, #121316); --ps-card: var(--card, #1d1e23); --ps-text: var(--text, #ececef); --ps-sub: var(--sub, #a3a5ad);
    --ps-line: var(--line, rgba(255,255,255,.1)); --ps-acc: var(--accent, #8c9aff); --ps-on: var(--accent-text, #10122a);
    --ps-green: var(--green, #6fd0a0); --ps-red: var(--red, #ff7b7b); --ps-amber: var(--amber, #e8b04f);
    --ps-blue: var(--blue, #7fb0ff); --ps-purple: var(--purple, #b893f2); --ps-lime: #a6d86a;
  }
}
:root[data-theme="dark"] :is(.ps, .rq-card, .rq-list, .rq-one, .ps-overlay, .ps-toast) {
  --ps-bg: var(--bg, #121316); --ps-card: var(--card, #1d1e23); --ps-text: var(--text, #ececef); --ps-sub: var(--sub, #a3a5ad);
  --ps-line: var(--line, rgba(255,255,255,.1)); --ps-acc: var(--accent, #8c9aff); --ps-on: var(--accent-text, #10122a);
  --ps-green: var(--green, #6fd0a0); --ps-red: var(--red, #ff7b7b); --ps-amber: var(--amber, #e8b04f);
  --ps-blue: var(--blue, #7fb0ff); --ps-purple: var(--purple, #b893f2); --ps-lime: #a6d86a;
}

/* ── 시트 틀 ── */
.ps-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ps-host > .ps { flex: 1; }
/* 포털 판(P.sheet) 안: 판을 위아래 줄로 — 머리와 바닥 단추는 늘 보이고, 가운데(.ps-body) 한 겹만 넘어간다.
   ✕ 는 ＋판 머리의 것 하나만 (쓰던 것이 있으면 묻고 닫음). 폰은 단계가 바뀌어도 판 높이가 출렁이지 않게 고정 */
.sheet:has(.ps-host) { display: flex; flex-direction: column; overflow: hidden; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); height: 92vh; height: 92dvh; }
.sheet:has(.ps-host) > .sheet-x { display: none; }
.sheet:has(.ps-host) > .sheet-grab { flex: none; height: 16px; }
.sheet:has(.ps-host) > .sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet:has(.ps-host) .ps-head { padding-top: 4px; }
.ps-host .ps-body:last-child, .ps-host .ps-body:has(+ .ps-foot[hidden]) { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) {
  .sheet:has(.ps-host) { height: min(860px, 86vh); padding-bottom: 0; }
  .sheet-wrap.wide .sheet:has(.ps-host) { height: 100%; }
  .sheet:has(.ps-host) .ps-head { padding-top: 10px; }
}
.ps { color: var(--ps-text); font-size: 1rem; line-height: 1.5; display: flex; flex-direction: column; min-height: 0; max-height: 100%; container-type: inline-size; -webkit-tap-highlight-color: transparent; }
.ps * { box-sizing: border-box; }
:where(.ps) button { font: inherit; color: inherit; cursor: pointer; }
.ps [hidden] { display: none !important; }
.ps-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 8px 16px; flex: none; }
.ps-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.ps-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ps-fill); font-size: 1.15rem; line-height: 1; display: grid; place-items: center; }
.ps-icon:hover { background: color-mix(in srgb, var(--ps-text) 9%, var(--ps-card)); }
.ps-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ps-foot { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ps-line); background: color-mix(in srgb, var(--ps-card) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.ps-hint { color: var(--ps-sub); font-size: .9rem; margin: 0 0 12px; word-break: keep-all; }
.ps-q { margin: 18px 0 8px; font-size: 1rem; font-weight: 700; word-break: keep-all; }
.ps-q small { font-weight: 500; color: var(--ps-sub); font-size: .82rem; margin-left: 4px; }
.ps-q:first-child { margin-top: 6px; }
.ps-sub2 { color: var(--ps-sub); font-size: .86rem; margin: -4px 0 8px; word-break: keep-all; }
.ps-mut { color: var(--ps-sub); font-size: .86rem; margin: 8px 0 0; word-break: keep-all; }
.ps-warn { color: var(--ps-amber); font-weight: 600; font-size: .92rem; word-break: keep-all; }
.ps-sec { margin-top: 4px; }
.ps-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ps-link { border: 0; background: none; color: var(--ps-acc); font-weight: 600; padding: 6px 4px; font-size: .92rem; }
.ps-exp { color: var(--ps-sub); font-size: .86rem; margin: 0 0 8px; word-break: keep-all; }

/* 단추 */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 13px; border: 1px solid transparent; background: var(--ps-acc); color: var(--ps-on) !important; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.ps-btn.ghost { background: var(--ps-card); color: var(--ps-text) !important; border-color: var(--ps-line); font-weight: 600; }
.ps-btn.tel { background: var(--ps-green); color: #fff !important; }
.ps-btn:disabled { opacity: .45; cursor: default; }
.ps-send { width: 100%; min-height: 54px; border-radius: 15px; border: 0; background: var(--ps-acc); color: var(--ps-on); font-size: 1.08rem; font-weight: 750; letter-spacing: -.01em; box-shadow: 0 6px 20px color-mix(in srgb, var(--ps-acc) 28%, transparent); transition: transform .08s, opacity .15s; }
.ps-send:active:not(:disabled) { transform: scale(.985); }
.ps-send:disabled { opacity: .4; box-shadow: none; cursor: default; }
.ps-big { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 10px; border-radius: 16px; border: 1px solid var(--ps-line); background: var(--ps-card); font-size: 1.08rem; font-weight: 700; }
.ps-big.pri { background: var(--ps-acc); color: var(--ps-on); border-color: transparent; }
.ps-pickbig { padding: 6px 0 4px; }
.ps-pickbig .ps-q { margin-top: 2px; }

/* 칩 */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip { min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--ps-line); background: var(--ps-card); font-size: .95rem; font-weight: 600; line-height: 1.25; text-align: left; word-break: keep-all; transition: background .12s, border-color .12s; }
.ps-chip:hover { border-color: color-mix(in srgb, var(--ps-acc) 45%, var(--ps-line)); }
.ps-chip.on { background: var(--ps-acc); border-color: var(--ps-acc); color: var(--ps-on); }
.ps-chip.on::before { content: "✓ "; }
.ps-chips.big .ps-chip { min-height: 48px; font-size: 1rem; }
.ps-chip.date { position: relative; }
.ps-chip.date input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ps-miss .ps-chips, .ps-miss > .ps-in, .ps-miss > .ps-ta, .ps-miss > .ps-dates { outline: 2px solid color-mix(in srgb, var(--ps-red) 70%, transparent); outline-offset: 4px; border-radius: 12px; }
.ps-missmsg { color: var(--ps-red); font-size: .86rem; font-weight: 600; margin-top: 6px; }

/* 글 칸 */
.ps-ta, .ps-in, .ps-sel { width: 100%; font: inherit; font-size: 1rem; color: var(--ps-text); background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .12s, box-shadow .12s; }
.ps-ta { min-height: 92px; resize: none; line-height: 1.55; display: block; }
.ps-in { min-height: 48px; }
.ps-ta:focus, .ps-in:focus, .ps-sel:focus { border-color: var(--ps-acc); box-shadow: 0 0 0 3px var(--ps-soft); }
.ps-ta::placeholder, .ps-in::placeholder { color: color-mix(in srgb, var(--ps-sub) 80%, transparent); }
.ps-money { display: flex; gap: 8px; } .ps-money .ps-in { flex: 1; } .ps-money .ps-sel { width: 104px; flex: none; }
input.ps-in[type="date"] { min-height: 48px; }

/* 스위치·고르기 */
.ps-switch { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; cursor: pointer; user-select: none; }
.ps-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-sw { width: 46px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--ps-text) 18%, var(--ps-card)); position: relative; flex: none; transition: background .15s; }
.ps-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.ps-switch input:checked + .ps-sw { background: var(--ps-red); }
.ps-switch input:checked + .ps-sw::after { transform: translateX(18px); }
.ps-switch input:focus-visible + .ps-sw { box-shadow: 0 0 0 3px var(--ps-soft); }
.ps-check2 { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; font-weight: 600; word-break: keep-all; }
.ps-check2 input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ps-acc); flex: none; }
.ps-aud { display: grid; gap: 8px; }
.ps-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-card); cursor: pointer; font-weight: 600; }
.ps-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--ps-acc); }
.ps-radio:has(input:checked) { border-color: var(--ps-acc); background: var(--ps-soft); }
.ps-urg, .ps-urghint .ps-urg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ps-red) 10%, transparent); color: var(--ps-text); font-size: .92rem; font-weight: 600; word-break: keep-all; }
.ps-urg .ps-btn { min-height: 40px; }
.ps-note { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ps-fill); font-size: .92rem; word-break: keep-all; }
.ps-note.amber { background: color-mix(in srgb, var(--ps-amber) 13%, transparent); }
.ps-note.red { background: color-mix(in srgb, var(--ps-red) 11%, transparent); font-weight: 600; }

/* 녹음 */
.ps-rec { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; }
.ps-recbtn { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ps-acc) 55%, var(--ps-line)); background: var(--ps-card); color: var(--ps-acc); font-weight: 700; font-size: 1rem; }
.ps-recbtn.big { min-height: 48px; padding: 0 20px; font-size: 1.04rem; }
.ps-rec.rec { padding: 6px 6px 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ps-red) 11%, transparent); width: 100%; }
.ps-recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ps-red); animation: ps-pulse 1s ease-in-out infinite; flex: none; }
@keyframes ps-pulse { 50% { opacity: .25; } }
.ps-rect { flex: 1; color: var(--ps-red); font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.ps-recstop { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ps-red); color: #fff !important; font-weight: 700; }
.ps-rec.done audio { height: 40px; flex: 1 1 200px; min-width: 0; max-width: 100%; }
.ps-recmeta { color: var(--ps-sub); font-size: .86rem; }
.ps-x2 { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ps-fill); color: var(--ps-sub) !important; }

/* 격자 */
.ps-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
@container (min-width: 520px) { .ps-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ps-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ps-fill); border: 1px solid var(--ps-line); padding: 0; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; outline: none; transition: box-shadow .12s, opacity .12s; }
.ps-tile:focus-visible, .ps-tile.editing { box-shadow: 0 0 0 3px var(--ps-acc); }
.ps-tile .ps-th { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; pointer-events: none; }
.ps-tile.drag { z-index: 5; box-shadow: 0 14px 34px rgba(0,0,0,.28); opacity: .96; transition: none; cursor: grabbing; }
.ps-grid.dragging .ps-tile:not(.drag) { transition: transform .15s; }
.ps-doc { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; }
.ps-doc b { font-size: .82rem; letter-spacing: .04em; color: var(--ps-acc); background: var(--ps-soft); border-radius: 6px; padding: 2px 7px; }
.ps-doc span { font-size: .72rem; color: var(--ps-sub); line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-all; }
.ps-doc.big { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ps-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; font-size: .8rem; pointer-events: none; }
.ps-x { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(20,20,24,.62); color: #fff !important; font-size: .82rem; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 2; }
/* 보낸 뒤 지우기(10분 안): 실패 표시처럼 보이지 않게 작고 옅게 — 누르면 '지울까요?'를 묻는다 */
.ps-x.del { width: 24px; height: 24px; top: 4px; right: 4px; font-size: .7rem; background: rgba(255,255,255,.86); color: #6b6f78 !important; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ps-tag { position: absolute; left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(20,20,24,.62); border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.ps-tag.ok { background: var(--ps-green); color: #fff; }
.ps-tag.bad { background: var(--ps-red); white-space: normal; line-height: 1.2; }
.ps-tag.err { background: var(--ps-red); cursor: pointer; }
.ps-tag.dup { background: var(--ps-amber); }
.ps-tile.st-bad .ps-th, .ps-tile.st-err .ps-th { opacity: .45; }
.ps-tile.dup { box-shadow: 0 0 0 2px var(--ps-amber); }
.ps-capdot { position: absolute; top: 6px; left: 6px; font-size: .78rem; background: rgba(255,255,255,.88); border-radius: 999px; padding: 0 5px; z-index: 2; }
.ps-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .3s; }
.ps-meter.on { opacity: 1; }
.ps-meter i { display: block; height: 100%; width: 0; background: var(--ps-acc); transition: width .2s; }
.ps-tile.st-ok .ps-meter i { background: var(--ps-green); }
.ps-tile.st-up::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); pointer-events: none; }
.ps-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-style: dashed; border-width: 1.5px; background: transparent; color: var(--ps-acc); font-weight: 700; font-size: .85rem; }
.ps-add b { font-size: 1.6rem; line-height: 1; font-weight: 400; }
.ps-addrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ps-addrow .ps-btn { flex: 1 1 0; min-width: 96px; }
.ps-attnote { color: var(--ps-sub); font-size: .8rem; margin-top: 8px; }
.ps-dupbar { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ps-amber) 14%, transparent); font-size: .9rem; font-weight: 600; }
.ps-dupbar > span { flex: 1 1 200px; word-break: keep-all; }
.ps-dupbar small { display: block; font-weight: 500; color: var(--ps-sub); }
.ps-capedit { display: flex; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 16px; background: var(--ps-fill); border: 1px solid var(--ps-line); animation: ps-in .16s ease-out; }
.ps-cappv { width: 96px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: var(--ps-card); }
.ps-cappv img, .ps-cappv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-capbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-capname { font-size: .82rem; color: var(--ps-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-capbody .ps-row { justify-content: flex-end; }
@keyframes ps-in { from { opacity: 0; transform: translateY(4px); } }

/* 올리기 진행 */
.ps-prog { font-size: .86rem; color: var(--ps-sub); min-height: 0; margin-bottom: 8px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-prog:empty { display: none; }
.ps-prog.err { color: var(--ps-red); white-space: normal; font-weight: 600; }

/* 사무실이 먼저 부탁 */
.ps-ask { padding: 12px 14px; border-radius: 16px; background: var(--ps-soft); margin-bottom: 8px; word-break: keep-all; }
.ps-asklab { font-size: .8rem; font-weight: 700; color: var(--ps-acc); margin-bottom: 4px; }

/* ＋판 */
.ps-compose { border: 1px solid var(--ps-line); border-radius: 18px; background: var(--ps-card); padding: 4px 4px 8px; transition: border-color .12s, box-shadow .12s; }
.ps-compose:focus-within { border-color: var(--ps-acc); box-shadow: 0 0 0 3px var(--ps-soft); }
.ps-compose .ps-ta { border: 0; box-shadow: none !important; background: transparent; min-height: 84px; }
.ps-tools { display: flex; align-items: center; gap: 6px; padding: 0 6px; flex-wrap: wrap; }
.ps-tools .ps-recbox { flex: 1 1 auto; min-width: 0; }
.ps-tools .ps-rec { margin-top: 0; }
.ps-tools .ps-sq { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ps-line); background: var(--ps-card); font-size: 1.15rem; display: grid; place-items: center; flex: none; }
.ps-compose .ps-att { padding: 6px 6px 0; }
.ps-compose .ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-sendrow { margin-top: 10px; }
.ps-sendrow .ps-exp { margin-top: 2px; }
.ps-or { display: flex; align-items: center; gap: 10px; color: var(--ps-sub); font-size: .88rem; margin: 22px 0 10px; font-weight: 600; }
.ps-or::before, .ps-or::after { content: ""; flex: 1; height: 1px; background: var(--ps-line); }
.ps-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 560px) { .ps-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ps-kind { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--ps-line); background: var(--ps-card); text-align: left; font-weight: 650; font-size: .97rem; line-height: 1.3; word-break: keep-all; transition: border-color .12s, transform .08s; }
.ps-kind:hover { border-color: color-mix(in srgb, var(--ps-acc) 45%, var(--ps-line)); }
.ps-kind:active { transform: scale(.985); }
.ps-kind .ic { font-size: 1.35rem; flex: none; width: 30px; text-align: center; }
.ps-kind.paper { border: 1.5px solid color-mix(in srgb, var(--ps-red) 70%, transparent); }
.ps-kind.more { justify-content: center; color: var(--ps-sub); }
.ps-kind.more .chev { transition: transform .15s; }
.ps-kind.more[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ps-morelist { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
@container (min-width: 560px) { .ps-morelist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps-morelist .ps-kind { min-height: 52px; font-weight: 600; }
.ps-banner { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--ps-soft); margin-bottom: 10px; font-size: .92rem; font-weight: 600; word-break: keep-all; }
.ps-banner > span { flex: 1 1 160px; }
.ps-banner.warn { background: color-mix(in srgb, var(--ps-amber) 14%, transparent); }
.ps-casepill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--ps-fill); font-size: .88rem; font-weight: 600; margin-bottom: 10px; border: 0; text-align: left; }
.ps-casepill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-casepill em { font-style: normal; color: var(--ps-acc); flex: none; }
.ps-cases { display: grid; gap: 8px; }
.ps-case { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ps-line); background: var(--ps-card); }
.ps-case b { display: block; font-size: 1.02rem; word-break: keep-all; }
.ps-case small { display: block; color: var(--ps-sub); font-size: .84rem; margin-top: 2px; }
.ps-case.unsure { background: transparent; border-style: dashed; }
.ps-case:hover { border-color: var(--ps-acc); }

/* 날짜 칩 + 고른 날짜 */
.ps-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ps-dates .ps-in[type="date"] { width: auto; min-width: 170px; }
.ps-daylist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ps-daylist span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--ps-soft); font-weight: 600; font-size: .9rem; }
.ps-daylist button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ps-sub); }

/* 통화 시간 */
.ps-slots { display: grid; gap: 12px; }
.ps-slotday h4 { margin: 0 0 6px; font-size: .88rem; color: var(--ps-sub); font-weight: 700; }
.ps-slotday .ps-chips { gap: 6px; }
.ps-slotday .ps-chip { min-height: 44px; padding: 6px 13px; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.ps-slotday .ps-chip small { font-weight: 500; font-size: .74rem; opacity: .8; }
.ps-slotday .ps-chip.on::before { content: none; }

/* 진행 소식 미리 보기 (궁금해요 › 진행 상황) */
.ps-qp { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--ps-fill); }
.ps-qp h4 { margin: 0 0 8px; font-size: .95rem; }
.ps-qp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ps-qp li { font-size: .93rem; word-break: keep-all; }
.ps-qp li small { display: block; color: var(--ps-sub); font-size: .8rem; }
.ps-qp .ps-row { margin-top: 12px; }

/* 요약 카드 */
.ps-sum { margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--ps-fill); border: 1px solid var(--ps-line); }
.ps-sum h3 { margin: 0 0 8px; font-size: .9rem; color: var(--ps-sub); font-weight: 700; }
.ps-sumt { font-weight: 750; font-size: 1.02rem; margin-bottom: 6px; word-break: keep-all; }
.ps-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .93rem; }
.ps-dl dt { color: var(--ps-sub); white-space: nowrap; }
.ps-dl dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ps-dl dd.txt { white-space: pre-wrap; }

/* 보낸 뒤 */
.ps-done { text-align: center; padding: 10px 4px 6px; animation: ps-in .2s ease-out; }
.ps-done h2 { margin: 6px 0 4px; font-size: 1.3rem; outline: none; word-break: keep-all; }
.ps-done p { margin: 4px 0; word-break: keep-all; }
.ps-done .ps-exp { margin: 6px 0 0; }
.ps-done .ps-urg, .ps-done .ps-note { text-align: left; }
.ps-done .ps-bar { margin: 18px auto 6px; max-width: 360px; }
.ps-check.off { background: var(--ps-amber); }
.ps-check { width: 64px; height: 64px; margin: 4px auto 2px; border-radius: 50%; background: var(--ps-green); color: #fff; font-size: 2rem; font-weight: 800; display: grid; place-items: center; animation: ps-pop .35s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 8px 22px color-mix(in srgb, var(--ps-green) 35%, transparent); }
@keyframes ps-pop { from { transform: scale(.4); opacity: 0; } }
.ps-donesum { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--ps-fill); font-weight: 600; text-align: left; word-break: keep-all; }
.ps-acts { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.ps-acts > * { flex: 1 1 140px; }
.ps-delnote { text-align: center; }
.ps-bubble { margin: 14px 0 0 auto; max-width: 86%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--ps-soft); text-align: left; white-space: pre-wrap; word-break: break-word; }

/* 단계 막대 (5-7) */
.ps-bar { display: flex; align-items: flex-start; --c: var(--ps-acc); }
.ps-bar.need { --c: var(--ps-amber); } .ps-bar.lime { --c: var(--ps-lime); } .ps-bar.done { --c: var(--ps-green); } .ps-bar.gray { --c: var(--ps-sub); }
.ps-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ps-step i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ps-text) 22%, transparent); background: var(--ps-card); position: relative; z-index: 1; }
.ps-step + .ps-step::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: color-mix(in srgb, var(--ps-text) 14%, transparent); }
.ps-step.on i { border-color: var(--c); background: var(--c); }
.ps-step.on + .ps-step.on::before, .ps-step.on + .ps-step::before { background: var(--c); }
.ps-step.on + .ps-step:not(.on)::before { background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--ps-text) 14%, transparent)); }
.ps-step.cur i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.ps-step em { font-style: normal; font-size: .76rem; color: var(--ps-sub); margin-top: 4px; white-space: nowrap; }
.ps-step.on em { color: var(--ps-text); font-weight: 650; }
.ps-step small { font-size: .7rem; color: var(--ps-sub); font-variant-numeric: tabular-nums; }

/* 옛 화면용 시트 바탕·알림 */
.ps-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,20,.36); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: ps-fade .15s; }
@keyframes ps-fade { from { opacity: 0; } }
.ps-own { width: 100%; max-width: 620px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--ps-card); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); overflow: hidden; animation: ps-up .22s cubic-bezier(.2,.9,.3,1); }
.ps-own > .ps { flex: 1; min-height: 0; }
@keyframes ps-up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 900px) { .ps-overlay { align-items: center; } .ps-own { border-radius: 22px; max-height: 86vh; } }
body.ps-lock { overflow: hidden; }
.ps-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: min(92vw, 460px); padding: 11px 16px; border-radius: 14px; background: rgba(28,28,32,.92); color: #fff; font-size: .94rem; font-weight: 600; box-shadow: 0 8px 26px rgba(0,0,0,.25); transition: opacity .3s; word-break: keep-all; text-align: center; }
.ps-toast.err { background: color-mix(in srgb, var(--ps-red) 92%, black); }
.ps-toast.out { opacity: 0; }

/* ── 요청 카드 (홈·사건·내 요청) ── */
.rq-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--ps-r); background: var(--ps-card); border: 1px solid var(--ps-line); color: var(--ps-text); text-decoration: none; position: relative; transition: border-color .12s, transform .08s; -webkit-tap-highlight-color: transparent; }
.rq-card + .rq-card { margin-top: 8px; }
.rq-card:hover { border-color: color-mix(in srgb, var(--ps-acc) 40%, var(--ps-line)); }
.rq-card:active { transform: scale(.993); }
.rq-ic { font-size: 1.45rem; width: 34px; flex: none; text-align: center; }
.rq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rq-t { font-weight: 700; font-size: .98rem; line-height: 1.3; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rq-t b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.rq-no { color: var(--ps-sub); font-weight: 500; font-size: .8rem; flex: none; font-variant-numeric: tabular-nums; }
.rq-sub { color: var(--ps-sub); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-stl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; }
.rq-st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: .78rem; --c: var(--ps-sub); color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; }
.rq-st.sent { --c: var(--ps-sub); } .rq-st.seen { --c: var(--ps-blue); } .rq-st.doing { --c: var(--ps-purple); } .rq-st.need_you { --c: var(--ps-amber); }
.rq-st.replied { --c: var(--ps-lime); } .rq-st.done { --c: var(--ps-green); } .rq-st.closed { --c: var(--ps-sub); } .rq-st.withdrawn { --c: var(--ps-sub); text-decoration: line-through; }
.rq-due { color: var(--ps-sub); }
.rq-urg { padding: 1px 7px; border-radius: 999px; background: var(--ps-red); color: #fff; font-weight: 700; font-size: .72rem; }
.rq-ch { color: var(--ps-sub); font-size: .78rem; }
.rq-mini { display: flex; gap: 3px; width: 100%; max-width: 220px; }
.rq-mini i { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ps-text) 12%, transparent); }
.rq-mini i.on { background: var(--c, var(--ps-acc)); }
.rq-mini.need { --c: var(--ps-amber); } .rq-mini.lime { --c: var(--ps-lime); } .rq-mini.done { --c: var(--ps-green); } .rq-mini.gray { --c: var(--ps-sub); }
.rq-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--ps-red); }
.rq-chev { color: var(--ps-sub); font-size: 1.2rem; flex: none; }
.rq-card.st-withdrawn { opacity: .7; }

/* 내 요청 목록 */
.rq-list { color: var(--ps-text); }
.rq-seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--ps-fill); margin-bottom: 12px; }
.rq-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--ps-sub); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; white-space: nowrap; padding: 0 6px; }
.rq-seg button.on { background: var(--ps-card); color: var(--ps-text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.rq-seg button b { margin-left: 4px; color: var(--ps-amber); }
.rq-empty { text-align: center; color: var(--ps-sub); padding: 36px 12px; }
.rq-empty .ps-btn { margin-top: 14px; }
.rq-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.rq-more { display: block; width: 100%; margin-top: 10px; }

/* 요청 한 건 */
.rq-one { color: var(--ps-text); max-width: 760px; }
.rq-hd { display: flex; gap: 12px; align-items: flex-start; }
.rq-hd .rq-ic { font-size: 2rem; width: 44px; }
.rq-hd h1 { margin: 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; word-break: keep-all; }
.rq-hd .rq-sub { white-space: normal; font-size: .86rem; margin-top: 2px; }
.rq-hd a { color: var(--ps-acc); text-decoration: none; font-weight: 600; }
.rq-stbig { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.rq-stbig .rq-st { font-size: .9rem; padding: 4px 12px; }
.rq-one .ps-bar { margin: 16px 0 6px; }
.rq-box { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--ps-card); border: 1px solid var(--ps-line); }
.rq-box > h2 { margin: 0 0 10px; font-size: 1rem; }
.rq-box.ask { border: 1.5px solid var(--ps-amber); background: color-mix(in srgb, var(--ps-amber) 7%, var(--ps-card)); }
.rq-box.ask > h2 { color: var(--ps-amber); }
.rq-box.result { border: 1.5px solid var(--ps-green); background: color-mix(in srgb, var(--ps-green) 7%, var(--ps-card)); }
.rq-box.result > h2 { color: var(--ps-green); }
.rq-box.closedr { background: var(--ps-fill); }
.rq-body { white-space: pre-wrap; word-break: break-word; margin: 10px 0 0; }
.rq-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.rq-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ps-fill); border: 1px solid var(--ps-line); display: block; color: var(--ps-text); text-decoration: none; }
.rq-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-ph .ps-doc { position: absolute; inset: 0; }
.rq-ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .7rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-ph .ps-x { top: 4px; right: 4px; }
.rq-audio { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rq-audio audio { height: 40px; flex: 1; min-width: 0; max-width: 420px; }
.rq-thread { display: flex; flex-direction: column; gap: 10px; }
.rq-msg { max-width: 88%; align-self: flex-start; }
.rq-msg.mine { align-self: flex-end; }
.rq-msg .w { font-size: .78rem; color: var(--ps-sub); margin: 0 6px 3px; }
.rq-msg.mine .w { text-align: right; }
.rq-msg .b { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--ps-fill); border: 1px solid var(--ps-line); white-space: pre-wrap; word-break: break-word; }
.rq-msg.mine .b { border-radius: 18px 18px 6px 18px; background: var(--ps-soft); border-color: transparent; }
.rq-msg .rq-pre { display: block; font-weight: 650; font-size: .92rem; }
.rq-msg .rq-photos { margin-top: 6px; grid-template-columns: repeat(auto-fill, 92px); }
.rq-msg.mine .rq-photos { justify-content: end; }
.rq-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.rq-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--ps-card); border: 1px solid var(--ps-line); }
.rq-doc .n { flex: 1 1 160px; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-doc a { color: var(--ps-acc); font-weight: 650; text-decoration: none; white-space: nowrap; font-size: .92rem; }
.rq-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.rq-acts .ps-btn { flex: 1 1 150px; }
.rq-acts .rq-print { flex: 0 0 auto; margin-left: auto; border-color: transparent; background: transparent; color: var(--ps-sub) !important; font-weight: 600; }
.rq-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.rq-log li { display: flex; gap: 10px; }
.rq-log time { color: var(--ps-sub); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.rq-log .note { color: var(--ps-sub); }
.rq-compose { margin-top: 12px; animation: ps-in .16s ease-out; }
.rq-compose .ps-row { justify-content: flex-end; margin-top: 10px; }
.rq-fold > summary { cursor: pointer; color: var(--ps-sub); font-weight: 650; font-size: .92rem; list-style: none; }
.rq-fold > summary::-webkit-details-marker { display: none; }
.rq-fold > summary::before { content: "▸ "; }
.rq-fold[open] > summary::before { content: "▾ "; }
.rq-fold .rq-log { margin-top: 8px; }
.rq-skel { height: 74px; border-radius: var(--ps-r); background: linear-gradient(90deg, var(--ps-fill), color-mix(in srgb, var(--ps-text) 3%, var(--ps-card)), var(--ps-fill)); background-size: 200% 100%; animation: rq-sh 1.2s infinite linear; }
.rq-skel + .rq-skel { margin-top: 8px; }
@keyframes rq-sh { to { background-position: -200% 0; } }
.rq-blink { animation: rq-blink 1.6s ease-out; }
@keyframes rq-blink { from { box-shadow: 0 0 0 3px var(--ps-acc); } to { box-shadow: 0 0 0 3px transparent; } }

@media (prefers-reduced-motion: reduce) { .ps *, .rq-card, .rq-one * { animation: none !important; transition: none !important; } }
@media print {
  .rq-noprint, .ps-x, .rq-acts, .rq-compose, .ps-toast { display: none !important; }
  .rq-one { max-width: none; color: #000; }
  .rq-box { break-inside: avoid; border-color: #bbb; background: #fff !important; }
  .rq-photos { grid-template-columns: repeat(4, 1fr); }
  .rq-fold:not([open]) > :not(summary) { display: block; }
}

/* 일본어: 낱말 사이 빈칸이 없으므로 keep-all 대신 보통 줄바꿈 (금칙 처리는 strict) */
html:lang(ja) :is(.ps, .rq-card, .rq-list, .rq-one) :is(*, *::before) { word-break: normal !important; line-break: strict; }
