:root{
  --bg:#0b1220;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --blue:#1d4ed8;
  --gray:#6b7280;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, #0b1220 0%, #0b1220 220px, #f3f4f6 220px, #f3f4f6 100%);
  padding-bottom:76px; /* callbar 공간 */
}

a{color:inherit; text-decoration:none}

.nav{
  position:sticky; top:0; z-index:20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1100px; margin:0 auto;
  display:flex; gap:18px; padding:14px 16px;
  font-weight:700;
}
.nav-item{padding:8px 10px; border-radius:10px}
.nav-item:hover{background:#eef2ff}

.container{max-width:1100px; margin:0 auto; padding:24px 16px 24px}
.hero{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; }
}

.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.title{margin:0 0 6px; font-size:24px}
.subtitle{margin:0 0 14px; color:var(--muted); font-size:14px}

.form{display:flex; flex-direction:column; gap:10px}
.label{font-size:12px; color:var(--muted); font-weight:700}
.input,.textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 12px;
  font-size:14px;
  background:#fff;
}
.textarea{min-height:88px; resize:vertical}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
@media (max-width:480px){ .grid2{grid-template-columns:1fr} }

.btn{
  margin-top:4px;
  border:none;
  border-radius:12px;
  background: #334155;
  color:white;
  padding:12px 14px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.msg{margin:0; font-size:13px; color:var(--muted)}
.msg.ok{color:#065f46}
.msg.err{color:#b91c1c}

.consent{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:8px 2px;
}
.checkbox{display:flex; align-items:center; gap:8px; font-size:13px; color:#111827}
.linkbtn{
  border:none; background:transparent; color:var(--blue);
  font-weight:800; cursor:pointer;
}

.ticker-wrap{
  background: rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.ticker-title{margin:0; font-size:28px; font-weight:900}
.ticker-sub{margin:6px 0 14px; color:var(--muted)}
.ticker{display:flex; flex-direction:column; gap:10px}

.row{
  display:grid;
  grid-template-columns: 120px 90px 1fr 110px;
  gap:12px;
  align-items:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  animation: rowIn .35s ease;
}
@keyframes rowIn{
  from{opacity:0; transform: translateY(6px);}
  to{opacity:1; transform: translateY(0);}
}
@media (max-width:680px){
  .row{grid-template-columns: 110px 70px 1fr 90px; gap:8px}
}
.badge{
  color:#fff; font-weight:900; font-size:13px;
  border-radius:10px; padding:10px 10px; text-align:center;
}
.badge.done{background: var(--blue)}
.badge.ing{background: var(--gray)}
.cell-muted{color:var(--muted); font-weight:700}

.photo-table{
  margin-top:16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.section-title{margin:0 0 12px; font-size:18px; font-weight:900}
.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width:860px){ .photo-grid{grid-template-columns: repeat(2,1fr)} }
@media (max-width:520px){ .photo-grid{grid-template-columns: 1fr} }

.pcard{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.pimg{
  width:100%; height:140px; object-fit:cover; display:block;
  background:#f3f4f6;
}
.pbody{padding:12px}
.pbody h4{margin:0 0 6px; font-size:15px}
.pbody p{margin:0; color:var(--muted); font-size:13px; line-height:1.4}

.callbar{
  position:fixed; left:0; right:0; bottom:0; z-index:30;
  background:#111827; color:#fff;
  display:flex; align-items:center; justify-content:center;
  gap:10px;
  padding:14px 10px;
  font-weight:900;
}
.callnum{font-size:26px; letter-spacing:.5px}
.calltime{font-size:12px; color:#cbd5e1; font-weight:700}
@media (max-width:520px){
  .callbar{flex-direction:column; gap:6px}
}

/* modal */
.modal-backdrop{
  position:fixed; inset:0; z-index:50;
  background: rgba(0,0,0,.55);
  display:none; align-items:center; justify-content:center;
  padding:18px;
}
.modal-backdrop.open{display:flex}
.modal{
  width:min(900px, 100%);
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}
.modal-head h3{margin:0; font-size:16px; font-weight:900}
.iconbtn{border:none; background:transparent; font-size:18px; cursor:pointer}
.modal-body{
  padding:14px 16px;
  max-height:65vh;
  overflow:auto;
  white-space:pre-wrap;
  font-size:13px;
  line-height:1.55;
  color:#111827;
}
.toast{
  position:fixed;
  left:50%;
  bottom:92px;
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:12px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}
.nav { height:56px; padding:0!important; }

.nav-inner{
  height:100%;
  padding:0 16px!important;
  display:flex;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  padding:0!important;
  margin:0!important;
  line-height:1;
}

.brand-logo{
  height:50px;
  width:auto;
  display:block;
}

/* ===== Toast ===== */
.toast{
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

