/* 온간판 플랫폼 공통 스타일 (소개 페이지 · 신청 · 관리자) */
:root{
  --bg:#F6F5F2; --sf:#FFFFFF; --ink:#1F2A24; --mut:#4E5852; --ac:#2F5D50; --ac-d:#1F3F36;
  --soft:#E9EFEC; --ln:#E0DCD3; --ln2:#C9C4B8; --yel:#F2C14E; --dark:#1F2A24;
  --r:16px; --font:'IBM Plex Sans KR',system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
a{color:var(--ac)} a:hover{color:var(--ac-d)}
h1,h2,h3{margin:0;line-height:1.25;letter-spacing:-.03em}
p{margin:0}
img{max-width:100%}
button,input,select,textarea{font-family:inherit;font-size:16px;color:inherit}
:focus-visible{outline:3px solid var(--yel);outline-offset:2px}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.sec{padding:clamp(52px,7vw,88px) 0}
.center{text-align:center}
.muted{color:var(--mut)}
.small{font-size:13px}
.h2{font-size:clamp(26px,4vw,40px);font-weight:700}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}
.card{background:var(--sf);border:1px solid var(--ln);border-radius:var(--r);padding:20px}
.pill{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;background:var(--soft);color:var(--ac-d)}
.pill.yel{background:var(--yel);color:var(--ink)}
.pill.gray{background:#F2EFE8;color:var(--mut)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border-radius:999px;border:none;background:var(--ac);color:#FFF!important;text-decoration:none!important;font-weight:600;font-size:16px;cursor:pointer}
.btn:hover{background:var(--ac-d)}
.btn.ghost{background:var(--sf);color:var(--ink)!important;border:1px solid var(--ink)}
.btn.light{background:#FFF;color:var(--ink)!important}
.btn.small{min-height:44px;padding:0 16px;font-size:14px}
.btn.block{width:100%}
.btn[disabled],.btn.disabled{background:var(--ln2);cursor:not-allowed}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--ln2);background:var(--sf);cursor:pointer;font-size:15px}
.tab[aria-selected="true"]{background:var(--ink);color:#FFF;border-color:var(--ink)}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.lbl{font-size:14px;font-weight:600}
.field input,.field select,.field textarea{min-height:50px;padding:10px 14px;border-radius:12px;border:1px solid var(--ln2);background:#FFF}
.field textarea{min-height:110px;resize:vertical}
.help{font-size:13px;color:var(--mut)}
.og-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:#FFF;padding:14px 20px;border-radius:14px;font-size:15px;opacity:0;transition:.25s;z-index:99;max-width:calc(100% - 32px)}
.og-toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- 상단 ---------- */
.top{border-bottom:1px solid var(--ln);background:var(--bg)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;font-size:20px}
.brand .mark{height:34px;padding:0 10px;border-radius:6px;background:var(--dark);color:var(--yel);display:flex;align-items:center;font-size:14px;letter-spacing:.04em}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:2px}
.nav a{color:var(--ink);text-decoration:none;padding:10px 12px;font-size:15px}
.nav a.btn{color:#FFF;padding:0 18px;margin-left:6px;min-height:44px}

/* ---------- 소개 페이지 ---------- */
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding-top:clamp(44px,7vw,96px);padding-bottom:clamp(44px,7vw,96px)}
.hero h1{font-size:clamp(34px,6vw,64px);font-weight:700;letter-spacing:-.04em}
.hero .lead{font-size:clamp(16px,2vw,19px);color:var(--mut);margin-top:18px}
.checks{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:15px;color:var(--ac-d)}
.checks li::before{content:"✓ ";font-weight:700;color:var(--ac)}
.phones{display:flex;justify-content:center;gap:16px;align-items:flex-end}
.phone{width:min(46%,200px);aspect-ratio:9/18;border-radius:28px;border:8px solid var(--dark);overflow:hidden;display:flex;flex-direction:column}
.phone .ph-img{height:38%}
.phone .ph-body{padding:12px;display:flex;flex-direction:column;gap:6px}
.phone .bar{height:5px;border-radius:3px}
.steps{list-style:none;padding:0;margin:32px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:16px}
.steps li{background:var(--bg);border-radius:20px;padding:24px}
.steps .n{width:36px;height:36px;border-radius:999px;background:var(--ac);color:#FFF;display:flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:10px}
.founding{background:var(--yel);border-radius:24px;padding:clamp(22px,4vw,40px);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px}
.dz{background:#FFF;border:1px solid var(--ln);border-radius:18px;overflow:hidden}
.dz .sw{height:130px;padding:14px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--ln)}
.dz .sw span{display:block;border-radius:3px}
.dz .meta{padding:14px}
.pricing{background:var(--dark);color:#F6F5F2}
.pricing .plan{border-radius:20px;padding:26px;background:#2E3B34;display:flex;flex-direction:column;gap:10px}
.pricing .plan.main{background:#F6F5F2;color:var(--ink)}
.pricing .plan .amt{font-size:34px;font-weight:700}
.pricing ul{margin:0;padding-left:18px}
.seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#2E3B34}
.seg button{min-height:40px;padding:0 16px;border:none;border-radius:999px;background:transparent;color:#F6F5F2;cursor:pointer;font-size:14px}
.seg button[aria-pressed="true"]{background:#F6F5F2;color:var(--ink);font-weight:700}
.addons-box{border:1px solid #3E4C44;border-radius:20px;padding:22px;margin-top:16px}
details.faq{background:#FFF;border:1px solid var(--ln);border-radius:16px;padding:0 20px}
details.faq summary{min-height:60px;display:flex;align-items:center;cursor:pointer;font-weight:600;list-style:none}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";margin-left:auto;font-size:20px}
details.faq[open] summary::after{content:"−"}
details.faq p{padding:0 0 18px;color:var(--mut)}
.foot{background:var(--dark);color:#C9D3CE;font-size:13px;line-height:1.8}
.foot a{color:#FFF}

/* ---------- 신청 · 관리자 공통 (앱 화면) ---------- */
.app{max-width:560px;margin:0 auto;padding:16px 20px 120px;min-height:100vh}
.app-top{display:flex;align-items:center;gap:8px;min-height:48px}
.back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;border-radius:12px;color:var(--ink);text-decoration:none;font-size:22px}
.progress{height:4px;border-radius:999px;background:var(--ln);margin:8px 0 20px}
.progress i{display:block;height:4px;border-radius:999px;background:var(--ac)}
.app h1{font-size:clamp(24px,5vw,28px);margin-bottom:6px}
.choice{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px;border-radius:16px;border:1px solid var(--ln);background:#FFF;cursor:pointer;min-height:64px}
.choice[aria-pressed="true"]{border:2px solid var(--ac);box-shadow:0 0 0 3px var(--soft)}
.choice .t{font-weight:700;font-size:16px}
.choice .s{font-size:13px;color:var(--mut)}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.mini{width:72px;height:72px;flex-shrink:0;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--ln)}
.mini i{display:block}
.chk{width:24px;height:24px;flex-shrink:0;border-radius:7px;border:1.5px solid #8A9089;display:flex;align-items:center;justify-content:center;background:#FFF;color:#FFF;font-size:14px;font-weight:700}
[aria-pressed="true"] > .chk,[aria-checked="true"] > .chk{background:var(--ac);border-color:var(--ac)}
.sumrow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #EEEAE2;font-size:15px}
.sumrow:last-child{border-bottom:none}
.sumrow b{font-weight:600}
.total{font-size:22px;font-weight:700}
.bottom-bar{position:fixed;left:0;right:0;bottom:0;background:rgba(246,245,242,.96);border-top:1px solid var(--ln);padding:12px 20px calc(12px + env(safe-area-inset-bottom))}
.bottom-bar .in{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:8px}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{display:flex;gap:14px;padding-bottom:18px;position:relative}
.timeline .dot{width:24px;height:24px;border-radius:999px;flex-shrink:0;border:2px solid var(--ln2);background:#FFF;display:flex;align-items:center;justify-content:center;color:#FFF;font-size:13px;font-weight:700}
.timeline .done .dot{background:var(--ac);border-color:var(--ac)}
.timeline .cur .dot{border:3px solid var(--ac);background:var(--soft)}
.timeline li:not(:last-child)::after{content:"";position:absolute;left:11px;top:28px;bottom:2px;width:2px;background:var(--ln)}
.photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.photos .p{aspect-ratio:1;border-radius:12px;overflow:hidden;background:#EEE;position:relative}
.photos .p img{width:100%;height:100%;object-fit:cover}
.photos .p button{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:999px;border:none;background:rgba(0,0,0,.6);color:#FFF;cursor:pointer}
.photos label.add{aspect-ratio:1;border-radius:12px;border:1px dashed #8A9089;display:flex;align-items:center;justify-content:center;font-size:26px;color:var(--ac);cursor:pointer;background:#FFF}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* 관리자 */
.admin-shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 220px;max-width:260px;background:var(--dark);color:#E6EAE8;padding:20px 14px;display:flex;flex-direction:column;gap:4px}
.side a{color:#E6EAE8;text-decoration:none;padding:12px 14px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px}
.side a[aria-current="page"]{background:#2E3B34;color:#FFF;font-weight:700}
.side .tag{font-size:11px;padding:3px 8px;border-radius:999px;background:#3E4C44}
.side .badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#E5484D;color:#FFF;font-size:12px;font-weight:700;line-height:1;vertical-align:1px}
.side .badge.new{background:var(--yel);color:var(--ink);font-size:11px;letter-spacing:.02em}
.side .logout{margin-top:auto;background:none;border:1px solid #3E4C44;color:#C9D1CD;border-radius:12px;min-height:44px;padding:10px 14px;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.side .logout:hover{color:#FFF;border-color:#6B7A72}
.main{flex:999 1 560px;min-width:0;padding:24px clamp(16px,4vw,40px) 80px}
.main h1{font-size:clamp(22px,3.4vw,30px);margin-bottom:6px}
.list{display:flex;flex-direction:column;gap:10px}
.item{background:#FFF;border:1px solid var(--ln);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.days{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
.day{flex:0 0 72px;min-height:72px;border-radius:14px;border:1px solid var(--ln);background:#FFF;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.day[aria-pressed="true"]{background:var(--ink);color:#FFF;border-color:var(--ink)}
.preview-frame{border:6px solid var(--dark);border-radius:20px;overflow:hidden;background:#FFF;height:520px}
.preview-frame iframe{width:100%;height:100%;border:0}

@media (max-width:760px){
  .hero{grid-template-columns:1fr}
  .nav a.sub{display:none}
  .phones{display:none}
  .admin-shell{align-content:flex-start;flex-direction:column;flex-wrap:nowrap}
  .side{max-width:none;flex:0 0 auto;flex-direction:row;align-items:center;overflow-x:auto;padding:10px;gap:4px}
  .main{flex:1 1 auto}
  .side .brand-side{display:none}
  .side a{white-space:nowrap;min-height:44px;padding:10px 12px}
  .side .tag{display:none}
  .side .logout{margin-top:0;white-space:nowrap}
}
@media (min-width:761px) and (max-width:1024px){
  .hero{grid-template-columns:1fr}
  .phones{justify-content:flex-start}
}
@media (max-height:520px) and (orientation:landscape){
  .hero{padding-top:24px;padding-bottom:24px;gap:20px}
  .hero h1{font-size:clamp(28px,4.6vw,44px)}
  .phones{display:none}
  .nav a.sub{display:none}
  .bottom-bar{position:static;background:transparent;border:none;padding:16px 0 0}
  .app{padding-bottom:32px}
}

/* 확인 창 */
.og-modal{position:fixed;inset:0;z-index:100;background:rgba(20,26,23,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.og-modal-box{background:#FFF;border-radius:20px;padding:24px;width:min(420px,100%);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.og-modal-box h2{font-size:20px}
.og-modal-box p{margin-top:8px;color:var(--mut);white-space:pre-line}
.og-modal-btns{display:flex;gap:10px;margin-top:20px}
.og-modal-btns .btn{flex:1}

/* 로그인 · 회원가입 팝업 */
.og-auth{align-items:flex-start;overflow-y:auto}
.og-auth-box{position:relative;width:min(440px,100%);margin:auto 0;max-height:none}
.og-x{position:absolute;top:10px;right:10px;width:44px;height:44px;border:none;background:none;font-size:26px;line-height:1;cursor:pointer;color:var(--mut);border-radius:999px}
.og-x:hover{background:var(--soft)}
.og-tabs{padding-right:40px}
.og-tabs .tab{flex:1}
.checkline{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:15px}
.checkline input{width:20px;height:20px;accent-color:var(--ac);flex-shrink:0}
.checkline.strong{font-weight:700;border-bottom:1px solid var(--ln);margin-bottom:4px}
.og-consent{border:1px solid var(--ln);border-radius:14px;padding:4px 12px}
.og-or{display:flex;align-items:center;gap:10px;margin:16px 0 10px;color:var(--mut);font-size:13px}
.og-or::before,.og-or::after{content:"";flex:1;height:1px;background:var(--ln)}
.og-social.g{background:#FFF;color:#1F1F1F!important;border:1px solid #DADCE0}
.og-social.k{background:#FEE500;color:#191919!important}
.og-social.n{background:#03C75A;color:#FFF!important}
.og-social[disabled]{opacity:.5}
.og-links{justify-content:center;margin-top:12px;color:var(--mut);font-size:14px;gap:6px}
.linkbtn{background:none;border:none;padding:10px 4px;color:var(--mut);text-decoration:underline;cursor:pointer;font-size:14px;min-height:44px}
.navbtn{background:none;border:1px solid var(--ln2);border-radius:999px;padding:0 16px;min-height:44px;font-size:15px;cursor:pointer;margin-left:6px;color:var(--ink)}
.navbtn:hover{border-color:var(--ink)}

/* 문의 채팅 */
.chat{background:#FFF;border:1px solid var(--ln);border-radius:20px;overflow:hidden;margin-top:16px;display:flex;flex-direction:column}
.chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--ln)}
.chat-back{flex:0 0 44px;height:44px;border:none;background:none;font-size:28px;line-height:1;cursor:pointer;border-radius:999px;color:var(--ink)}
.chat-back:hover{background:var(--soft)}
.chat-title{flex:1;min-width:0;display:flex;flex-direction:column}
.chat-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-head .pill{flex-shrink:0}
.chat-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;padding:4px 14px;border-bottom:1px solid var(--ln);background:#FCFBF8}
.chat-tools .btn{min-height:40px}
.chat-list{background:#F3F1EC;padding:16px 14px;display:flex;flex-direction:column;gap:12px;max-height:min(60vh,560px);min-height:200px;overflow-y:auto}
.chat-day{display:flex;justify-content:center}
.chat-day span{font-size:12px;color:var(--mut);background:#E6E2D9;border-radius:999px;padding:3px 12px}
.chat-row{display:flex;flex-direction:column;align-items:flex-start;max-width:82%}
.chat-row.mine{align-self:flex-end;align-items:flex-end}
.chat-who{font-size:12px;color:var(--mut);margin:0 0 3px 4px}
.chat-line{display:flex;align-items:flex-end;gap:6px}
.chat-row.mine .chat-line{flex-direction:row-reverse}
.chat-bubble{background:#FFF;border:1px solid #E6E2D9;border-radius:4px 16px 16px 16px;padding:10px 14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.55}
.chat-row.mine .chat-bubble{background:var(--ac);color:#FFF;border-color:var(--ac);border-radius:16px 4px 16px 16px}
.chat-time{font-size:11px;color:var(--mut);white-space:nowrap;flex-shrink:0}
.chat-compose{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--ln);background:#FFF;position:sticky;bottom:0}
.chat-compose textarea{flex:1;min-height:48px;max-height:160px;resize:none;border:1px solid var(--ln2);border-radius:14px;padding:12px 14px;font:inherit;line-height:1.45;background:#FFF}
.chat-compose textarea:focus{outline:2px solid var(--ac);outline-offset:0;border-color:var(--ac)}
.chat-compose .btn{flex-shrink:0;min-height:48px;padding:0 18px}
.chat-hint{font-size:12px;color:var(--mut);text-align:right;padding:0 14px 10px;background:#FFF}
.chat-closed{padding:14px;text-align:center;color:var(--mut);border-top:1px solid var(--ln);font-size:14px}
@media (max-width:760px){
  .chat{margin-left:-4px;margin-right:-4px}
  .chat-list{max-height:none;min-height:240px}
  .chat-hint{display:none}
}

/* 고객센터 안내 카드 · 새 답변 표시 */
.notice{background:#FFF7E0;border:1px solid #F2D58A;border-radius:16px;padding:14px 16px}
.notice.seen{background:#FFF;border-color:var(--ln)}
.badge-inline{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#E5484D;color:#FFF;font-size:11px;font-weight:700;vertical-align:2px}

/* 근무 관리: 주간 근무표 */
.sched-wrap{overflow-x:auto;margin-top:12px;border:1px solid var(--ln);border-radius:14px;background:var(--sf);-webkit-overflow-scrolling:touch}
.sched{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;font-size:14px}
.sched th,.sched td{border-bottom:1px solid var(--ln);border-right:1px solid var(--ln);padding:8px;vertical-align:top;text-align:left}
.sched tr>*:last-child{border-right:none}
.sched tbody tr:last-child>*,.sched tfoot td{border-bottom:none}
.sched thead th{background:#FAF9F6;font-weight:600;white-space:nowrap}
.sched thead th.today{background:var(--soft);color:var(--ac-d)}
.sched th.who{position:sticky;left:0;z-index:1;background:var(--sf);min-width:120px;font-weight:500}
.sched thead th.who{background:#FAF9F6}
.sched td{min-width:92px}
.sched td.today{background:#F7FAF8}
.sched tfoot td,.sched tfoot th{background:#FAF9F6;font-size:13px;color:var(--mut)}
.sched .dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:6px;vertical-align:0}
.shift{display:block;width:100%;text-align:left;font:inherit;font-size:13px;line-height:1.3;padding:6px 8px;margin-bottom:4px;border-radius:8px;border:1px solid var(--ln);border-left:4px solid var(--ac);background:#FFF;color:var(--ink);cursor:pointer;min-height:36px}
.shift:hover{background:#FAF9F6}
.shift small{display:block;color:var(--mut);font-size:12px}
.shift.sel{outline:2px solid var(--ink);outline-offset:1px}
.sched .add{width:100%;min-height:32px;border:1px dashed var(--ln2);border-radius:8px;background:none;color:var(--mut);cursor:pointer;font:inherit;font-size:16px}
.sched .add:hover{border-color:var(--ac);color:var(--ac)}
.swatch{width:32px;height:32px;border-radius:999px;border:2px solid #FFF;box-shadow:0 0 0 1px var(--ln2);cursor:pointer;padding:0}
.swatch[aria-pressed="true"]{box-shadow:0 0 0 3px var(--ink)}
.print-only{display:none}
@media print{
  @page{size:A4 landscape;margin:10mm}
  body{background:#FFF}
  .side,.og-toast,.og-modal,.no-print{display:none!important}
  .print-only{display:block}
  .main{padding:0!important;max-width:none!important}
  .sched-wrap{overflow:visible;border:none}
  .sched{min-width:0;font-size:11px}
  .sched th.who{position:static}
  .sched .add{display:none}
  .shift{border:1px solid #999;border-left:4px solid #333;-webkit-print-color-adjust:exact;print-color-adjust:exact;cursor:default}
}
