/* Change-request form. Triple Up & Co. S system: white ground, near-black ink, no accent colour, square corners,
   Barlow Condensed for numbers and English display, Pretendard for Korean. Phone first. */
:root {
  --ground: #ffffff; --ink: #111111; --muted: #5f5f5f; --line: #e4e4e4; --soft: #f4f4f2; --err: #b3261e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --m: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--ko); -webkit-font-smoothing: antialiased; word-break: keep-all; line-break: strict; }
button, input, textarea { font: inherit; color: inherit; }
p, ul, h1, h2, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }
body [lang="en"] { font-family: var(--display); } /* not html: an English page keeps the body font */

.top { display: flex; align-items: center; height: 56px; padding: 0 var(--m); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.brand svg { width: 20px; height: 20px; }
.lang { margin-left: auto; min-height: 44px; padding: 0 2px 0 12px; border: 0; background: none; color: var(--ink); font: 600 15px/1 var(--ko); letter-spacing: .02em; cursor: pointer; }
.lang[lang="en"] { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

.wrap { width: min(100%, 680px); margin: 0 auto; padding: 28px var(--m) 96px; }
.store { font: 600 clamp(44px, 9vw + 14px, 76px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.lead { margin-top: 12px; font-size: 16px; color: var(--muted); letter-spacing: -.01em; }
.lead span { display: inline-block; }

.notice { margin-top: 20px; padding: 14px 16px; background: var(--soft); font-size: 15px; }
.waiting { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 16px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; }
.waiting::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.waiting::after { content: "→"; margin-left: auto; font-family: var(--display); font-size: 18px; }

/* ---------- composer ---------- */
.composer { display: grid; gap: 12px; margin-top: 24px; }
.composer > * { min-width: 0; }
.mini { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); }

.box { border: 1.5px solid var(--ink); background: #fff; transition: box-shadow .2s var(--ease); }
.box:focus-within { box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
.box.over { background: var(--soft); }
.box > .mini { padding: 12px 16px 0; margin: 0; }
textarea, input[type="date"], input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: 14px 16px; font-size: 17px; line-height: 1.55; appearance: none; transition: border-color .2s var(--ease); }
textarea:focus, input[type="date"]:focus, input[type="text"]:focus { outline: none; border-color: var(--ink); }
#text { display: block; border: 0; min-height: 104px; max-height: 60vh; resize: none; padding: 16px 16px 8px; font-size: 18px; }
#text::placeholder { color: #8a8a8a; }
input[type="date"] { min-height: 52px; max-width: 240px; }
input[type="text"] { min-height: 52px; font-weight: 600; }

.files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.files:not(:empty) { padding-bottom: 8px; }
.file { position: relative; width: 64px; height: 64px; }
.thumb { display: grid; place-items: center; width: 100%; height: 100%; background: var(--soft) center/cover no-repeat; border: 1px solid var(--line); font: 600 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.file.up .thumb { opacity: .55; }
.file.bad .thumb { outline: 2px solid var(--err); outline-offset: -2px; }
.ring { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; background: rgba(255,255,255,.7); }
.file:not(.up) .ring { display: none; }
.ring i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s linear; }
.x { position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.x::after { content: ""; position: absolute; inset: -6px; } /* 44px touch area */

.tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.attach { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.attach svg { width: 22px; height: 22px; }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 112px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.02em; cursor: pointer; transition: opacity .2s var(--ease), transform .12s var(--ease); }
.go::after { content: "→"; font-family: var(--display); font-size: 20px; line-height: 1; }
.go:active { transform: scale(.97); }
.go[disabled] { opacity: .45; cursor: progress; }
.go.small { min-height: 44px; min-width: 0; padding: 0 16px; font-size: 15px; }

.kinds .mini { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; letter-spacing: -.02em; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
@media (pointer: coarse) { .chip { min-height: 44px; } }
@media (max-width: 559px) { .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--m) * -1); padding: 0 var(--m); scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { flex: none; } }

/* newsletter */
.subject input { font-size: 18px; }
.nl { display: grid; gap: 0; }
.nl .hint { margin: 10px 0 18px; }
.inbox { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; background: #fff; font-size: 15px; line-height: 1.4; }
.inbox b, .inbox span, .inbox small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox b { font-weight: 700; }
.inbox small { font-size: 14px; color: var(--muted); }
.mail { display: block; width: 100%; height: 480px; border: 1px solid var(--line); background: #f3f0eb; pointer-events: none; }

.human:empty { display: none; }
.human { margin-top: 16px; }
/* ---------- store PIN ---------- */
.pin { display: grid; gap: 14px; margin-top: 32px; }
.pin-q { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.pin input { width: 100%; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; padding: 14px 16px; font: 600 40px/1 var(--display); letter-spacing: .5em; text-align: center; appearance: none; }
.pin input:focus { outline: none; box-shadow: 0 0 0 3px var(--soft); }
.pin .go { width: 100%; }
.error { color: var(--err); font-weight: 500; font-size: 15px; }

/* ---------- what was sent ---------- */
.feed { margin-top: 40px; scroll-margin-top: 16px; }
.feed-h { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.req { padding: 20px 0 22px; border-bottom: 1px solid var(--line); scroll-margin: 16px 0; }
.req[data-s="사장님 확인 대기"] { margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); background: var(--soft); }
.req[data-s="취소"] { color: var(--muted); }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.req-no { font-size: 14px; font-weight: 600; color: var(--muted); }
.req-no b { font: 600 15px/1 var(--display); letter-spacing: .06em; color: var(--ink); }
.flag { flex: none; padding: 4px 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; }
.req[data-s="막힘"] .flag, .req[data-s="취소"] .flag { background: none; color: var(--muted); border: 1px solid var(--line); }
.req-subject { margin-top: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.req-subject + .req-text { margin-top: 4px; }
.req-text { margin-top: 8px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req.open .req-text { display: block; }
.req-meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.more { margin-top: 2px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.req-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.req-files a { display: grid; place-items: center; width: 64px; height: 64px; background: var(--soft) center/cover no-repeat; border: 1px solid var(--line); font: 600 11px/1.1 var(--display); text-transform: uppercase; color: var(--muted); text-decoration: none; text-align: center; padding: 4px; overflow: hidden; }

/* progress: 받음 → 작업 중 → 반영 */
.track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; padding: 0; list-style: none; }
.track li { position: relative; padding-top: 20px; font-size: 13px; color: #9a9a9a; }
.track li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.track li:last-child::before { right: auto; width: 12px; }
.track li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cfcfcf; }
.track li.on { color: var(--ink); }
.track li.on:has(+ li.on)::before { background: var(--ink); }
.track li.on::after { background: var(--ink); box-shadow: none; }
.track li.now::after { box-shadow: inset 0 0 0 2px var(--ink); animation: beat 1s var(--ease) infinite alternate; }
.track b { display: block; font-weight: 600; letter-spacing: -.01em; }
.track small { display: block; font-size: 12px; color: var(--muted); }
@keyframes beat { to { transform: scale(1.25); } }

.thread { display: grid; gap: 10px; margin-top: 16px; }
.msg { padding: 12px 14px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; }
.msg.owner { border: 1px solid var(--line); margin-left: 24px; }
.req:not([data-s="사장님 확인 대기"]) .msg.us { background: var(--soft); }
.msg small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.answer { display: grid; gap: 8px; margin-top: 12px; }
.answer textarea { min-height: 88px; }
.answer .go { justify-self: end; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .go:active { transform: none; } }
@media (min-width: 768px) { :root { --m: 32px; } .wrap { padding-top: 56px; } }
