/* LINE AI受付 — Components
 * 디자인 시스템 「아이링크소프트」 v4 기준. 색 값은 tokens.css 변수만 사용해요. */
/* ---------- common parts ---------- */
.i{width:20px;height:20px;stroke:currentColor;flex:none}
.h1{display:flex;align-items:baseline;justify-content:space-between;margin:2px 2px 12px}.h1 b{font-size:22px}.h1 small{font-size:13px;color:var(--muted);font-weight:600}
.gl{font-size:13px;font-weight:800;color:var(--muted);margin:20px 4px 8px;display:flex;justify-content:space-between}
.gl:first-child{margin-top:4px}
.card{background:var(--card);border-radius:18px;overflow:hidden}
.card+.card{margin-top:12px}
.pad{padding:16px}
.rw{display:flex;align-items:center;gap:12px;padding:13px 16px;min-height:58px;border-bottom:1px solid var(--line2);width:100%;text-align:left;background:#fff}
.rw:last-child{border-bottom:0}
a.rw{color:inherit;text-decoration:none}
button.rw:hover,a.rw:hover,.rw.hov:hover{background:#f1f3f6}
.rw.sel,button.rw.sel:hover,a.rw.sel:hover,.rw.sel.hov:hover{background:var(--tint);box-shadow:inset 3px 0 0 var(--brand)}
.rw .x{flex:1;min-width:0}.rw .x b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rw .x span{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw .tm{width:52px;flex:none;font-weight:800;font-size:17px}
.rw .val{font-size:14px;color:var(--muted);white-space:nowrap}
.rw .cv{width:18px;height:18px;stroke:#a3adbb;flex:none}
.rw.cx .x b,.rw.cx .tm{color:#a3adbb;text-decoration:line-through}
.ic{width:38px;height:38px;border-radius:12px;background:#f1f4f8;display:grid;place-items:center;flex:none}
.ic svg{width:20px;height:20px;stroke:var(--sub)}
.ic.r{background:var(--tint)}.ic.r svg{stroke:var(--brand)}
.ic.g{background:var(--greenb)}.ic.g svg{stroke:#047a35}
.av{width:42px;height:42px;border-radius:50%;background:#eef1f5;display:grid;place-items:center;font-weight:800;font-size:16px;color:var(--sub);flex:none}
.bdg{font-size:11.5px;font-weight:800;padding:2px 9px;border-radius:999px;white-space:nowrap;flex:none}
.bdg.l{background:var(--greenb);color:#047a35}.bdg.t{background:#eef1f5;color:#475569}.bdg.c{background:#fee2e2;color:#b91c1c}.bdg.o{background:var(--okb);color:var(--ok)}.bdg.w{background:var(--warnb);color:var(--warn)}.bdg.r{background:var(--tint);color:var(--brand)}
.btn{height:50px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800;font-size:15px;width:100%;padding:0 18px;white-space:nowrap}
.btn svg{width:19px;height:19px;stroke:currentColor}
.btn.p{background:var(--brand);color:#fff;box-shadow:0 8px 22px rgba(209,25,25,.22)}.btn.p:hover{background:var(--brand2)}
.btn.p:disabled{background:#e5b4b4;box-shadow:none;cursor:default}
.btn.s{background:#fff;border:1.5px solid #d5d9e0}.btn.s:hover{background:#fafbfc}
.btn.d{background:#fff;color:#b91c1c;border:1.5px solid #fecaca}
.btn.k{background:var(--ink);color:#fff}
.btn.sm{height:40px;font-size:13.5px;width:auto;padding:0 16px}
.btn.lk{height:44px;background:none;color:var(--muted);font-size:14px;font-weight:700}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.next{background:var(--navy);color:#fff;border-radius:20px;padding:16px 18px;margin-bottom:14px;width:100%;text-align:left;display:block}
a.rw,a.btn,a.ch{text-decoration:none;color:inherit}
a.btn.p{color:#fff}
.next small{font-size:12px;font-weight:700;opacity:.7}
.next .r{display:flex;align-items:baseline;gap:12px;margin-top:2px}
.next .t{font-size:30px;font-weight:800;letter-spacing:-.02em}.next .n{font-size:17px;font-weight:800}
.next .s{font-size:13px;opacity:.78;margin-top:2px}
.next .c{margin-left:auto;background:rgba(255,255,255,.14);border-radius:999px;padding:3px 11px;font-size:12px;font-weight:800;align-self:center}
.sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.sum>*{min-width:0;display:block;background:#fff;border-radius:16px;padding:12px 14px;text-align:left}
.sum small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:12px;color:var(--muted);font-weight:700}.sum b{font-size:24px;font-weight:800}.sum b i{font-style:normal;font-size:12px;color:var(--muted);margin-left:2px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0}
.ch{flex:none;height:38px;border:1.5px solid #dde2e8;background:#fff;border-radius:999px;padding:0 15px;font-size:14px;font-weight:700;color:var(--sub);display:flex;align-items:center;gap:6px}
.ch.on{background:var(--ink);border-color:var(--ink);color:#fff}
.ch em{font-style:normal;opacity:.6}
.ch svg{width:17px;height:17px;stroke:currentColor}
.seg{display:flex;background:#e9edf2;border-radius:14px;padding:4px;margin-bottom:14px}
.seg button{flex:1;height:38px;border-radius:11px;font-weight:700;font-size:14px;color:#475569;display:flex;align-items:center;justify-content:center;gap:6px}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.seg em{font-style:normal;background:var(--brand);color:#fff;font-size:11px;border-radius:9px;padding:0 6px;font-weight:800}
.srch{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:0 14px;height:48px;margin-bottom:12px;border:1.5px solid transparent}
.srch:focus-within{border-color:var(--ink)}
.srch svg{width:19px;height:19px;stroke:var(--muted)}
.srch input{flex:1;border:0;outline:0;background:none;font-size:15px;min-width:0}
.emp{background:#fff;border-radius:18px;padding:28px 20px;text-align:center;color:var(--muted);font-size:14px}
.emp b{display:block;color:var(--ink);font-size:17px;margin-bottom:4px}
.emp .ic{margin:0 auto 10px;width:52px;height:52px;border-radius:16px}.emp .ic svg{width:26px;height:26px}
.kv{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line2);font-size:15px;min-height:54px}
.kv:last-child{border:0}.kv span{color:var(--muted);font-size:14px}.kv b{font-weight:700;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.sw{width:50px;height:30px;border-radius:15px;background:#cbd5e1;position:relative;flex:none;transition:.2s}
.sw:after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}
.sw.on{background:var(--ink)}.sw.on:after{left:23px}
.note{font-size:13px;color:var(--muted);margin:10px 4px 0;line-height:1.6}
.al{display:flex;gap:10px;border-radius:14px;padding:12px 14px;font-size:13.5px;margin-bottom:12px;line-height:1.55}
.al svg{width:19px;height:19px;flex:none;margin-top:1px}
.al.e{background:#fef2f2;color:#991b1b}.al.e svg{stroke:#991b1b}
.al.i{width:auto;height:auto;stroke:none;background:#f0f6ff;color:#1e3a8a}.al.i svg{stroke:#1e3a8a}
.al.w{background:var(--warnb);color:#92400e}.al.w svg{stroke:#92400e}
.al.g{background:var(--okb);color:#065f46}.al.g svg{stroke:#065f46}
.fl{margin-bottom:14px}
.fl label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--sub)}
.fl input,.fl select,.fl textarea{width:100%;height:50px;border:1.5px solid #d5d9e0;border-radius:14px;padding:0 14px;font-size:16px;background:#fff;outline:0}
.fl textarea{height:88px;padding:12px 14px;resize:none}
.fl input:focus,.fl select:focus,.fl textarea:focus{border-color:var(--ink)}
.fl input.er{border-color:var(--brand)}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.slots button{height:44px;border:1.5px solid #dde2e8;border-radius:12px;font-weight:700;font-size:14px;background:#fff}
.slots button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.slots button:disabled{color:#c4cbd5;text-decoration:line-through;background:#f8f9fb;cursor:default}
.hit{background:var(--okb);color:#065f46;border-radius:12px;padding:10px 12px;font-size:13.5px;margin:-6px 0 14px;display:flex;gap:8px;align-items:center}
.hit svg{width:18px;height:18px;stroke:#065f46}
.hit.c{background:#fef2f2;color:#991b1b}.hit.c svg{stroke:#991b1b}

/* week & timeline */
.wk{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:12px}
.wk button{background:#fff;border-radius:14px;padding:7px 0 6px;font-size:12px;color:var(--muted);font-weight:700;display:flex;flex-direction:column;align-items:center}
.wk button b{font-size:18px;color:var(--ink);line-height:1.3}
.wk button.on{background:var(--ink);color:#fff}.wk button.on b{color:#fff}
.wk button.cl b{color:#c4cbd5;text-decoration:line-through}
.wk .d{width:5px;height:5px;border-radius:50%;background:var(--brand);margin-top:2px}.wk .d.n{background:transparent}
.wkh{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}
.wkh b{font-size:17px}
.wkh div{display:flex;gap:4px}
.tl{background:#fff;border-radius:18px;padding:4px 14px}
.tl .r{display:flex;gap:12px;min-height:56px;border-bottom:1px solid var(--line2);align-items:center}
.tl .r:last-child{border:0}
.tl .r>span{width:44px;font-size:13px;color:var(--muted);flex:none;font-weight:700}
.tl .e{flex:1;background:var(--tint);border-left:4px solid var(--brand);border-radius:10px;padding:7px 11px;font-size:13px;text-align:left;margin:5px 0}
.tl .e b{display:block;font-size:14.5px}
.tl .e.g{background:#eef1f5;border-left-color:#94a3b8;color:var(--sub)}
.tl .e.l{background:var(--greenb);border-left-color:var(--green)}
.tl .em{flex:1;color:#a3adbb;font-size:13px;text-align:left;height:46px;border-radius:10px;padding:0 11px;display:flex;align-items:center;gap:6px}
.tl .em:hover{background:#f6f8fa;color:var(--sub)}
.tl .em svg{width:16px;height:16px;stroke:currentColor}

/* detail bits */
.bhead{background:#fff;border-radius:20px;padding:20px;margin-bottom:12px}
.bhead small{font-size:13px;color:var(--muted);font-weight:700}
.bhead .t{font-size:26px;font-weight:800;margin:2px 0 6px;letter-spacing:-.01em}
.bhead .m{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--sub)}
.prof{background:#fff;border-radius:20px;padding:22px 18px 18px;text-align:center;margin-bottom:12px}
.prof .av{width:68px;height:68px;font-size:26px;margin:0 auto 8px}
.prof b{font-size:20px;display:block}.prof small{color:var(--muted);font-size:13.5px}
.prof .row2{margin-top:16px}
.st3{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-radius:18px;margin-bottom:12px}
.st3 div{text-align:center;padding:12px 0;font-size:12px;color:var(--muted);font-weight:700}.st3 b{display:block;font-size:19px;color:var(--ink)}
.tline{position:relative;padding-left:22px}
.tline:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:var(--line)}
.tline .it{position:relative;background:#fff;border-radius:16px;padding:12px 14px;margin-bottom:10px}
.tline .it:before{content:"";position:absolute;left:-21px;top:17px;width:10px;height:10px;border-radius:50%;background:#fff;border:2.5px solid var(--brand)}
.tline .it.p:before{border-color:#a3adbb}
.tline .it .hd{display:flex;gap:8px;align-items:center}.tline .it .hd b{font-size:15px}.tline .it .hd .bdg{margin-left:auto}
.tline .it p{margin:4px 0 0;font-size:13.5px;color:var(--sub)}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.photos div,.photos button,.photos .photos-add{aspect-ratio:1;border-radius:14px;display:grid;place-items:center;font-size:12px;color:var(--muted);font-weight:700}
.photos div{background:linear-gradient(135deg,#e7ebf0,#d7dde5)}
.photos div svg{width:28px;height:28px;stroke:#94a3b8}
.photos button,.photos .photos-add{border:1.5px dashed #c4cbd5;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:4px;cursor:pointer}
.photos .photos-add span{display:flex;flex-direction:column;align-items:center;gap:4px}
.photos button svg,.photos .photos-add svg{width:24px;height:24px;stroke:var(--muted)}
.hc{background:#fff;border-radius:18px;padding:16px;margin-bottom:12px}
.hc .hd{display:flex;align-items:center;gap:8px}.hc .hd b{font-size:16px}.hc .hd time{margin-left:auto;font-size:13px;color:var(--muted)}
.hc .q{background:#f1f4f8;border-radius:16px 16px 16px 4px;padding:10px 13px;margin:10px 0 6px;font-size:14.5px}
.hc .a{font-size:13px;color:var(--muted);margin-bottom:12px}
.acts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.acts>*{height:58px;border:1.5px solid #e2e6ea;border-radius:14px;font-size:12.5px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#fff}
.acts>* svg{width:19px;height:19px;stroke:var(--sub)}
.acts button.p{background:var(--ink);border-color:var(--ink);color:#fff}.acts button.p svg{stroke:#fff}
.chat{display:flex;flex-direction:column}
.dday{align-self:center;font-size:12px;color:var(--muted);background:#e9edf2;border-radius:999px;padding:3px 12px;margin:6px 0 10px;font-weight:700}
.bub{max-width:80%;padding:10px 13px;border-radius:18px;font-size:14.5px;margin:4px 0;line-height:1.55}
.bub small{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.bub.c{background:#fff;border-bottom-left-radius:5px;align-self:flex-start}
.bub.a{background:#dff6e8;border-bottom-right-radius:5px;align-self:flex-end}
.bub.h{background:var(--tint);border-bottom-right-radius:5px;align-self:flex-end}

/* 번역 표시 — 원문 바로 밑에 작게 구분해서 표시 */
.bubtr{display:block;font-size:12.5px;color:var(--muted);margin-top:5px;padding-top:5px;border-top:1px solid var(--line2);line-height:1.5;max-width:100%}
.bubtr.pend{font-style:italic;opacity:.6}
.bubtr:not(.pend){font-weight:600;color:var(--sub)}

.chatfoot{flex:none;background:#fff;border-top:1px solid var(--line2);padding:12px 16px 18px;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:10px}
.chatfoot svg{width:18px;height:18px;stroke:#047a35}
.kp{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.kp div{background:#fff;border-radius:18px;padding:14px 16px}
.kp small{display:block;font-size:12.5px;color:var(--muted);font-weight:700}.kp b{font-size:28px;font-weight:800;letter-spacing:-.02em}.kp b i{font-style:normal;font-size:13px;color:var(--muted);margin-left:3px;font-weight:700}
.kp em{font-style:normal;font-size:12px;font-weight:800;color:var(--ok);display:block}.kp em.dn{color:#b91c1c}
.chartc{background:#fff;border-radius:18px;padding:16px;margin-bottom:12px}
.chartc h4{margin:0;font-size:15px;display:flex;justify-content:space-between}.chartc h4 span{font-size:12.5px;color:var(--muted);font-weight:600}
.bars{display:flex;align-items:flex-end;gap:6px;height:130px;margin-top:14px;padding-top:14px}
.bars div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.bars span{width:100%;max-width:34px;background:#e2e8f0;border-radius:6px 6px 2px 2px;position:relative}
.bars span.on{background:var(--brand)}
.bars i{font-style:normal;font-size:11px;color:var(--muted);font-weight:700}
.bars b{font-size:11px;font-weight:800;color:var(--sub)}
.donutw{display:flex;align-items:center;gap:20px;margin-top:14px;flex-wrap:wrap}
.donut{width:124px;height:124px;border-radius:50%;flex:none;display:grid;place-items:center}
.donut>div{width:76px;height:76px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.donut>div b{font-size:20px;font-weight:800}.donut>div small{font-size:11px;color:var(--muted);font-weight:700}
.dleg{list-style:none;margin:0;padding:0;flex:1;min-width:140px;display:grid;gap:8px;font-size:14px}
.dleg li{display:flex;align-items:center;gap:8px}.dleg li i{width:10px;height:10px;border-radius:3px;flex:none}.dleg li span{flex:1;color:var(--sub)}.dleg li b{font-weight:800}
.bars.hrs{height:110px;gap:4px}.bars.hrs b{font-size:10.5px}
.hbar{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:14px}
.hbar span{width:110px;flex:none;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbar div{flex:1;height:10px;background:#eef1f5;border-radius:5px;overflow:hidden}.hbar div i{display:block;height:100%;background:var(--ink);border-radius:5px}
.hbar b{width:44px;text-align:right;font-size:13.5px}
.plan{border:1.5px solid #e2e6ea;border-radius:18px;padding:16px;margin-bottom:10px;background:#fff;display:block;width:100%;text-align:left;position:relative}
.plan.on{border-color:var(--brand);box-shadow:0 0 0 4px var(--tint)}
.plan b{font-size:17px}.plan .pr{float:right;font-weight:800;font-size:18px}.plan .pr i{font-style:normal;font-size:12px;color:var(--muted);font-weight:600}
.plan small{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.steps{list-style:none;padding:0;margin:0;counter-reset:s}
.steps li{counter-increment:s;position:relative;padding:14px 16px 14px 56px;border-bottom:1px solid var(--line2);font-size:14.5px}
.steps li:last-child{border:0}
.steps li:before{content:counter(s);position:absolute;left:16px;top:14px;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}
.steps li small{display:block;color:var(--muted);font-size:13px}
.code{background:#f1f4f8;border-radius:12px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;font-weight:700;margin-top:8px;text-align:center}
.qrbox{width:150px;height:150px;margin:6px auto 10px;border-radius:16px;background:
 repeating-conic-gradient(var(--ink) 0 25%,#fff 0 50%) 0 0/22px 22px;border:10px solid #fff;outline:1.5px solid var(--line);position:relative}
.qrbox:after{content:"";position:absolute;inset:44px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 4px var(--green)}
.pop{background:#fff;border-radius:20px;padding:22px;text-align:center;border:1.5px solid var(--line)}
.pop .brand{color:var(--brand);font-weight:800;font-size:13px;letter-spacing:.08em}
.pop h3{margin:6px 0 4px;font-size:21px}
.pop p{margin:0;color:var(--muted);font-size:13.5px}
.preview{background:#7a8aa5;border-radius:18px;padding:16px}
.preview .bub{max-width:100%;background:#fff;font-size:13.5px}
.preview small{color:#e8edf5;display:block;text-align:center;margin-top:8px;font-size:12px}
.onb{background:#fff;border-radius:20px;padding:22px 18px;text-align:center;margin-bottom:12px}
.onb .ic{width:56px;height:56px;border-radius:18px;margin:0 auto 10px}.onb .ic svg{width:28px;height:28px}
.onb b{font-size:19px;display:block}.onb p{margin:4px 0 0;color:var(--muted);font-size:14px}
.chk{width:28px;height:28px;border-radius:50%;border:2px solid #d5d9e0;display:grid;place-items:center;flex:none}
.chk.on{background:var(--ok);border-color:var(--ok)}.chk svg{width:16px;height:16px;stroke:#fff}

/* layers */
.layer{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;justify-content:flex-end}
.layer .bg{position:absolute;inset:0;background:rgba(15,23,42,.45);animation:fd .2s}
.sheet{position:relative;background:#fff;border-radius:26px 26px 0 0;max-height:92%;display:flex;flex-direction:column;animation:up .25s cubic-bezier(.2,.8,.2,1)}
.sheet .gr{width:40px;height:5px;background:#d5d9df;border-radius:3px;margin:9px auto 2px;flex:none}
.sheet .sh{flex:none;display:flex;align-items:center;padding:6px 10px 6px 20px}
.sheet .sh b{flex:1;font-size:18px}
.sheet .sb{flex:1;overflow-y:auto;padding:6px 20px 12px}
.sheet .sf{flex:none;padding:10px 20px 30px;border-top:1px solid var(--line2);display:flex;flex-direction:column;gap:8px}
.dlg{position:relative;margin:auto;background:#fff;border-radius:22px;width:min(340px,86%);padding:22px 20px 16px;animation:pop .18s;text-align:center}
.dlg b{font-size:18px;display:block}.dlg p{color:var(--muted);font-size:14px;margin:8px 0 18px;line-height:1.6}
.dlg .row2{gap:8px}
.toast{position:absolute;left:50%;bottom:112px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:999px;padding:12px 20px;font-size:14px;font-weight:700;z-index:80;display:flex;align-items:center;gap:8px;white-space:nowrap;animation:pop .2s;box-shadow:0 12px 30px rgba(15,23,42,.25)}
.toast svg{width:18px;height:18px;stroke:#4ade80}
/* 다시 그려진 레이어는 애니메이션 없이 */
.layer.re .bg,.layer.re .sheet,.layer.re .dlg{animation:none}
@keyframes up{from{transform:translateY(100%)}}
@keyframes fd{from{opacity:0}}
@keyframes pop{from{opacity:0;transform:translateX(var(--tx,0)) scale(.96)}}
.toast{--tx:-50%}

/* login */
.login{position:absolute;inset:0;background:#fff;display:flex;flex-direction:column;overflow-y:auto}
.login .art{display:none}
.login .frm{flex:1;padding:70px 26px 30px;display:flex;flex-direction:column;max-width:420px;width:100%;margin:0 auto}
.login .brandl{display:flex;align-items:center;gap:10px;margin-bottom:34px}
.login .brandl .appi{width:44px;height:44px;border-radius:13px}.login .brandl .appi svg{width:24px;height:24px}
.login .brandl b{font-size:19px;display:block}.login .brandl small{font-size:12.5px;color:var(--muted);font-weight:700}
.login h1{font-size:27px;margin:0 0 22px}
.pin{display:flex;gap:10px}
.pin span{flex:1;height:58px;border:1.5px solid #d5d9e0;border-radius:14px;display:grid;place-items:center;font-size:26px;background:#fff}
.pin span.f{border-color:var(--ink)}
.pin span.cur{border-color:var(--ink);box-shadow:0 0 0 3px #e2e8f0}
.pin.er span{border-color:var(--brand)}
.pinwrap{position:relative}
.pinwrap input{position:absolute;inset:0;opacity:0;width:100%;height:100%}
.login .div{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12.5px;margin:22px 0 12px}
.login .div:before,.login .div:after{content:"";flex:1;height:1px;background:var(--line)}
.lgfoot{margin-top:auto;padding-top:24px;text-align:center;font-size:12px;color:#94a3b8;font-weight:700;letter-spacing:.06em}

/* ---------- 제안(미구현) 표시 : 서버 작업 전까지 화면만 두고 비활성 ---------- */
.is-proposal{position:relative}
.is-proposal [data-off],.is-proposal.off-all *{pointer-events:none}
.is-proposal [data-off]{opacity:.45}
.is-proposal button:disabled,.btn:disabled{cursor:default}
.prep{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;color:var(--warn);background:var(--warnb);border:1px dashed #f0c27a;border-radius:999px;padding:1px 8px;white-space:nowrap;vertical-align:middle;flex:none}
.prep:before{content:"";width:6px;height:6px;border-radius:50%;background:#f59e0b}
.sw:disabled{opacity:.45;cursor:default}
.btn.s:disabled,.btn.d:disabled{opacity:.5}
.rw:disabled{cursor:default}.rw:disabled .x,.rw:disabled .ic{opacity:.5}

.rw .x span.prep{display:inline-flex;font-size:11px;color:var(--warn)}

/* ================= R2 추가 ================= */
/* 실제 QR 이미지 (예전 .qrbox 는 스캔되지 않는 CSS 무늬였어요 — S-56) */
.qrimg{display:block;margin:10px auto 6px;border-radius:12px;background:#fff;image-rendering:pixelated}
.pop .qrimg{margin:12px auto 8px}
.steps .qrimg{margin:10px 0 4px}
/* 비밀번호 자리 — 값을 보여 주지 않고 글자로만 안내 */
.mask{color:var(--muted);font-weight:600}
/* 전화번호가 없을 때 (S-30) */
.notel{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);font-weight:600}
.notel svg{width:16px;height:16px;stroke:currentColor}
/* 캘린더: 오늘 칸 강조 · 주 그리드 · 월 그리드 (S-12 · PC 전용) */
.wk button.now b{color:var(--brand)}
.wkgrid,.mgrid{width:100%;border-collapse:separate;border-spacing:4px;background:#fff;border-radius:18px;padding:6px}
.wkwrap,.mwrap{background:transparent}
.wkgrid th{font-size:12px;color:var(--muted);font-weight:700;padding:4px 2px}
.wkgrid th b{display:block;font-size:15px;color:var(--ink)}
.wkgrid th.today b{color:var(--brand)}
.wkgrid td{padding:2px;vertical-align:top}
.wkgrid th:first-child{width:52px;color:var(--muted);font-size:12.5px}
.wkgrid .e,.wkgrid .em{width:100%;min-height:34px;border-radius:8px;padding:4px 6px;font-size:11.5px;text-align:left;margin:0}
.wkgrid .e{background:var(--tint);border-left:3px solid var(--brand)}
.wkgrid .e.l{background:var(--greenb);border-left-color:var(--green)}
.wkgrid .e.g{background:#eef1f5;border-left-color:#94a3b8;color:var(--sub)}
.wkgrid .em{color:#c4cbd5;display:flex;align-items:center;justify-content:center}
.wkgrid .em svg{width:14px;height:14px;stroke:currentColor}
.mgrid th{font-size:12px;color:var(--muted);font-weight:700;padding:4px 0}
.mgrid th.sun{color:var(--brand)}.mgrid th.sat{color:#0369a1}
.mgrid td{padding:2px}
.mgrid .mc{width:100%;min-height:62px;background:#fff;border:1px solid var(--line2);border-radius:12px;padding:5px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:15px;font-weight:700;color:var(--ink)}
.mgrid .mc:hover{background:#f6f8fa}
.mgrid .mc.today{background:var(--tint);border-color:var(--brand);color:var(--brand)}
.mgrid .mc.cl{color:#c4cbd5;text-decoration:line-through}
.mgrid td.out .mc{opacity:.35}
.mgrid .mc i{font-style:normal;font-size:11px;font-weight:700;color:var(--brand)}
.mgrid .mc i.dot{background:var(--tint);border-radius:999px;padding:0 6px}
/* 홈페이지·공통: 11px 미만 금지 · 누르는 칸 44px 이상 (QA 체크) */
.gl small,.note{font-size:12px}

/* R2 QA accessibility: buttons and direct controls at least 44px high */
.ch,.seg button,.btn{min-height:44px}
.srch input{min-height:44px}
.wk{gap:2px}
.wk button{min-width:44px;min-height:44px;padding-left:0;padding-right:0}
/* S-21: 店舗限定アップロード写真 */
.photos .photo-item{aspect-ratio:1;border-radius:14px;overflow:hidden;border:1px solid var(--line);display:block;background:#fff}
.photos .photo-item img{display:block;width:100%;height:100%;object-fit:contain;background:#f1f5f9}

/* 예약 날짜 달력 (연도 선택 없음) */
.mcal{margin-top:8px;background:#fff;border:1.5px solid #dde2e8;border-radius:14px;padding:10px}
.mcal .mh{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.mcal .mh b{font-size:15px}
.mcal .mh button{width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.mcal .mh button:disabled{opacity:.3}.mcal .mh svg{width:18px;height:18px;stroke:var(--sub)}
.mcal .wk,.mcal .dg{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.mcal .wk i{font-style:normal;font-size:12px;color:var(--muted);padding:4px 0}
.mcal .dg button{height:38px;border-radius:10px;font-weight:700;font-size:14px}.mcal .dg button:hover:not(:disabled):not(.on){background:#f1f3f6}.mcal .dg button:disabled{color:#c3c9d1;font-weight:500}.mcal .dg button.on{background:var(--brand);color:#fff}

.faq{border-bottom:1px solid var(--line2)}.faq:last-child{border-bottom:0}
.faq summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:700;font-size:14.5px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:20px;font-weight:400;color:var(--muted);flex:none}
.faq[open] summary::after{content:"−"}
.faq p{margin:0;padding:0 16px 14px;font-size:13.5px;color:var(--sub);line-height:1.7}
.tr{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tr .tw{color:var(--muted);font-weight:700}
.tsel{display:inline-flex;align-items:center;gap:4px}.tsel select{width:auto;min-width:64px;padding-right:26px}.tsel i{font-style:normal;font-size:13px;color:var(--muted);font-weight:700;margin-right:4px}
@media(max-width:520px){.tr{flex-direction:column;align-items:flex-start;gap:4px}.tr .tw{line-height:1;padding-left:6px}}
.hol{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f1f5f9;border:1.5px dashed #94a3b8;border-radius:14px;padding:12px 14px;margin:0 0 10px;color:var(--sub)}
.hol b{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;color:var(--ink)}.hol b svg{width:18px;height:18px}
.hol span{font-size:12.5px;color:var(--muted);flex:1;min-width:140px}
.wk button.cl{position:relative}.wk button.cl::after{content:"休";position:absolute;top:4px;right:6px;font-size:10px;font-weight:800;color:#fff;background:#94a3b8;border-radius:6px;padding:1px 5px;line-height:1.3}
[data-tip]{position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 8px);z-index:30;width:max-content;max-width:260px;padding:10px 12px;border-radius:12px;background:var(--navy);color:#fff;font-size:13px;font-weight:700;line-height:1.5;box-shadow:0 8px 24px rgba(15,23,42,.25);opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .06s}
[data-tip]:hover::after,[data-tip]:focus-visible::after{opacity:1;transform:none}
.sum>[data-tip]::after{left:auto;right:0}
@media(hover:none){[data-tip]::after{display:none}}
