/* Relay 회원 화면 (시안 v6b). app.blade.php 전용 — 설치·관리자 화면은 main.css 를 쓴다. */
:root{
  --blue:#0965c9;      /* 지금 해야 할 주 동작 */
  --amber:#b25e00;     /* 급한 일 (만료·설치 마무리·연결 문제) */
  --amber-bg:#fff4e0;
  --green:#147342;     /* 정상 상태 */
  --red:#b42318;       /* 취소·삭제 (글자만) */
  --ink:#1c1c1e;--sub:#566070;--bg:#f2f2f7;--card:#fff;--line:#d1d1d6;--r:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#e5e5ea;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","PingFang SC","Malgun Gothic","Microsoft YaHei",sans-serif;color:var(--ink);line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
[hidden]{display:none!important}
.phone{max-width:430px;min-height:100vh;min-height:100dvh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column;position:relative}
.scroll{flex:1;padding-bottom:20px}
.top{padding:22px 18px 4px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.top h1{font-size:24px;margin:0;letter-spacing:-.3px;line-height:1.25}
.top h1 button{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}
.top h1 .more{color:var(--blue);font-size:15px;font-weight:500;white-space:nowrap}
.lang{font-size:14px;color:var(--blue);background:none;border:0;padding:10px 0 10px 8px;font-family:inherit;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.lead{font-size:15px;color:var(--sub);margin:6px 18px 16px;line-height:1.5}
h2{font-size:14px;font-weight:600;color:var(--ink);margin:20px 18px 8px}
.group{background:var(--card);border-radius:var(--r);margin:0 16px;overflow:hidden}
.group.gap{margin-top:14px}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:12px 16px;font-size:15px;min-height:46px;border:0;border-top:.5px solid var(--line);background:none;color:inherit;font-family:inherit;text-align:left;line-height:1.4}
button.row{cursor:pointer}
a.row{text-decoration:none}
.row:first-child{border-top:0}
.row .t2{display:block;font-size:13px;color:var(--sub);margin-top:2px}
.row .grow{flex:1;min-width:0}
.v{color:var(--sub);font-size:14px;text-align:right}
.chev:after{content:"›";color:#8e8e93;font-size:20px;margin-left:8px}
.btn{display:block;width:100%;border:0;border-radius:12px;padding:15px;font-size:17px;font-weight:600;color:#fff;font-family:inherit;text-align:center;cursor:pointer;line-height:1.3}
.btn.blue{background:var(--blue)}
.btn.amber{background:var(--amber)}
.btn.red{background:var(--red)}
.btn.text{background:none;color:var(--blue);font-weight:500;padding:10px;font-size:16px}
.btn.textred{background:none;color:var(--red);font-weight:500;padding:8px;font-size:16px}
.btn:disabled{background:#c7c7cc;cursor:default}
.btn[aria-busy=true]{opacity:.7}
a.btn{text-decoration:none}
.small{font-size:13px;color:var(--sub);line-height:1.5;margin:8px 0 0}
.small.out{margin:10px 28px}
.link{color:var(--blue);background:none;border:0;padding:0;font:inherit;cursor:pointer;text-decoration:none}
.pad{padding:16px}
.inset{padding:4px 16px 12px}
.side{margin:0 16px}
.big{font-size:17px;font-weight:600}
/* 상태 줄 */
.status{display:flex;align-items:center;gap:12px;padding:14px 16px}
.status.amber{background:var(--amber-bg)}
.status .ic{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.status .t{font-size:16px;font-weight:600}
.status .s{font-size:13px;color:var(--sub);margin-top:2px}
.status.amber .t{color:var(--amber)}.status.amber .s{color:var(--ink)}
.status.green .t{color:var(--green)}
.okic{background:#e5f3ea}.okic i{width:12px;height:12px;border-radius:50%;background:var(--green)}
.warnic{background:#fff}.warnic i{width:4px;height:16px;border-radius:2px;background:var(--amber)}
.greyic{background:#eef0f3}.greyic i{width:12px;height:12px;border-radius:50%;background:#8e8e93}
/* 목적 타일 */
.goals{display:grid;gap:8px;margin:0 16px}
.goal{background:var(--card);border-radius:var(--r);padding:13px 16px;display:flex;align-items:center;gap:14px;border:1.5px solid transparent;width:100%;font-family:inherit;color:inherit;text-align:left;cursor:pointer}
.goal .g{width:42px;height:42px;border-radius:12px;flex:0 0 42px;display:flex;align-items:center;justify-content:center}
.goal .g svg{width:22px;height:22px}
.goal .gt{display:block;font-size:16px;font-weight:600}
.goal .gs{display:block;font-size:13px;color:var(--sub);margin-top:3px;line-height:1.4}
.goal.main .g{background:#e6f0fb}
.goal.other .g{background:#eef0f3}
svg{display:block}
/* 단계 */
.steps{list-style:none;margin:0;padding:4px 16px 8px}
.steps li{display:flex;gap:12px;padding:11px 0;border-top:.5px solid var(--line);font-size:15px;line-height:1.45}
.steps li:first-child{border-top:0}
.steps li>span:last-child{min-width:0;flex:1}
.n{flex:0 0 26px;height:26px;border-radius:50%;border:1.5px solid #8e8e93;color:var(--sub);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.steps li.now .n{border-color:var(--blue);color:var(--blue)}
.steps li.now{font-weight:600}
.steps li.done .n{background:var(--green);border-color:var(--green);color:#fff}
.steps li.done{color:var(--sub)}
.steps .small{display:block;margin:2px 0 0;font-weight:400}
.foot{padding:12px 18px 22px;font-size:12px;color:var(--sub);display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.foot .link{font-size:12px;padding:8px 4px}
/* 아래 시트 */
.dim{position:fixed;inset:0;background:rgba(0,0,0,.35);border:0;padding:0;width:100%;z-index:10}
.sheet{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:430px;bottom:0;background:var(--bg);border-radius:16px 16px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom));max-height:86vh;overflow:auto;z-index:11}
.grab{width:36px;height:5px;border-radius:3px;background:#c7c7cc;margin:8px auto 4px}
.sheet h3{font-size:17px;text-align:center;margin:6px 16px 4px}
.sheet .why{font-size:13px;color:var(--sub);text-align:center;margin:0 24px 12px;line-height:1.5}
.radio{width:22px;height:22px;border-radius:50%;border:1.5px solid #8e8e93;flex:0 0 22px;margin-right:12px}
.radio.on{border:7px solid var(--blue)}
.chk{width:22px;height:22px;border-radius:6px;border:1.5px solid #8e8e93;flex:0 0 22px;margin-right:12px}
.chk.on{background:var(--blue);border-color:var(--blue)}
.srv{display:flex;align-items:center;min-width:0}
.tag{font-size:12px;padding:3px 8px;border-radius:10px;white-space:nowrap}
.tag.fast{color:var(--green);background:#e5f3ea}
.tag.re{color:var(--amber);background:var(--amber-bg)}
.input{display:block;width:100%;border:0;border-radius:12px;padding:14px;font-size:16px;font-family:inherit;background:var(--card);color:var(--ink)}
.input.grey{background:#f2f2f7}
.input+.input{margin-top:8px}
.err{color:var(--red);font-size:13px;margin:8px 4px 0;line-height:1.45}
.gerr{max-width:430px;margin:0 auto;background:#fdeceb;color:var(--red);font-size:14px;padding:12px 18px;line-height:1.45}
.toast{position:fixed;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:398px;bottom:24px;background:#1c1c1e;color:#fff;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.4;z-index:12}
.toast.up{bottom:auto;top:14px} /* 아래 시트가 떠 있으면 위에 띄워 버튼을 가리지 않는다 */
.pic{display:block;width:100%;max-width:300px;height:auto;margin:10px 0 2px;border-radius:12px;border:1px solid var(--line);background:#f2f2f7}
.shots{padding:4px 16px 12px}.shots p{font-size:14px;line-height:1.45;margin:6px 2px 16px}.shots img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.qrbox{width:200px;margin:6px auto 4px;padding:10px;background:#fff;border-radius:12px;outline:1px solid var(--line)}
.qrbox svg,.qrbox canvas,.qrbox img{display:block;width:100%;height:auto}
.center{text-align:center}
.loading{padding:60px 18px;text-align:center;color:var(--sub);font-size:15px}
:focus-visible{outline:3px solid #0a84ff;outline-offset:2px}
h1:focus,h3:focus{outline:none} /* 화면이 바뀔 때 읽기 위치만 옮긴다 */
.sheet.still{animation:none}
.row:focus-visible,.goal:focus-visible{outline-offset:-3px}
@media (min-width:540px){.phone{margin:18px auto;min-height:calc(100vh - 36px);border-radius:28px;overflow:hidden;border:1px solid #c7c7cc}}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up .18s ease-out}@keyframes up{from{transform:translate(-50%,24px);opacity:.6}}}
