
:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --card:#111c33;
  --line:#22304f;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#60a5fa;
  --warn:#f59e0b;
  --danger:#ef4444;
  --ok:#22c55e;
  --btn:#1f2a44;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: radial-gradient(1200px 700px at 10% 0%, #13203a 0%, var(--bg) 55%);
  color:var(--text);
}
.topbar{
  padding:16px 18px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(17,28,51,.78), rgba(11,18,32,.35));
  backdrop-filter: blur(6px);
}
.brand{display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap}
.title{font-size:18px; font-weight:900; letter-spacing:.2px}
.subtitle{font-size:12px; color:var(--muted)}
.filebar{margin-top:10px; display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.status{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px}
.dot{width:10px; height:10px; border-radius:999px; background:#6b7280; box-shadow:0 0 0 3px rgba(107,114,128,.15)}
.dot.ok{background:var(--ok); box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.file-actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}

.main{padding:16px 18px 26px}
.grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr;}
}

.card{
  background: rgba(17,28,51,.58);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  overflow:hidden;
}
.card-h{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.char{
  display:flex; align-items:center; gap:10px;
}
.avatar{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(96,165,250,.18);
  border:1px solid rgba(96,165,250,.25);
  font-weight:900;
}
.charname{font-size:16px; font-weight:900}
.badges{display:flex; gap:6px; align-items:center; flex-wrap:wrap}
.badge{
  font-size:11px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  color:var(--muted);
}
.badge.warn{color:#fde68a; border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12)}
.badge.danger{color:#fecaca; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12)}
.badge.ok{color:#bbf7d0; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12)}

.sections{padding:10px 10px 12px}
.section{
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  overflow:hidden;
  margin-bottom:10px;
}
.section-h{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  background: rgba(0,0,0,.10);
}
.section-title{font-weight:900; font-size:13px}
.section-sub{font-size:11px; color:var(--muted)}

.rows{padding:6px 8px 8px}
.row{
  display:grid;
  grid-template-columns: 150px 1fr auto;
  gap:10px;
  align-items:center;
  padding:9px 8px;
  border-radius:12px;
}
.row + .row{border-top:1px solid rgba(255,255,255,.04)}
.row:hover{background: rgba(96,165,250,.06)}
.row.sub .label{color:#cbd5e1}
.label{font-weight:800}
.value{justify-self:start}
.value.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.actions{display:flex; gap:8px; align-items:center}

.btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(31,42,68,.85);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{border-color: rgba(96,165,250,.35); box-shadow:0 0 0 3px rgba(96,165,250,.12)}
.btn:active{transform: translateY(1px)}
.btn.small{padding:7px 10px; font-size:12px; border-radius:11px}
.btn.ghost{background: rgba(0,0,0,.12)}
.icon{
  width:34px; height:32px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  cursor:pointer;
  font-weight:900;
}
.icon:hover{border-color: rgba(96,165,250,.35); box-shadow:0 0 0 3px rgba(96,165,250,.12)}

.toggle{
  display:flex; align-items:center; gap:8px;
  background: rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.10);
  padding:7px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.toggle input{width:16px; height:16px; accent-color: var(--accent)}

.fileinput{position:relative; overflow:hidden}
.fileinput input{position:absolute; inset:0; opacity:0; cursor:pointer;}

.toast{
  position:fixed;
  left:50%; transform:translateX(-50%);
  bottom:18px;
  background: rgba(17,28,51,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:10px 14px;
  color:var(--text);
  font-size:12px;
  display:none;
  max-width:min(92vw, 820px);
}

.dialog{
  border:none;
  border-radius:18px;
  padding:0;
  background: rgba(17,28,51,.98);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
}
.dialog::backdrop{background: rgba(0,0,0,.6)}
.dialog-body{padding:16px; min-width:min(560px, 92vw)}
.dialog-title{font-weight:900; font-size:14px}
.dialog-grid{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px; margin-top:12px}
@media (max-width: 720px){ .dialog-grid{grid-template-columns:1fr} }
.field{display:grid; gap:6px}
.field span{font-size:12px; color:var(--muted); font-weight:800}
.field input{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.dialog-actions{display:flex; justify-content:flex-end; gap:8px; margin-top:14px}

/* v1.0 patch: 버튼 정렬(일렬) + 오드 기준시각 입력 UI */
.actions{justify-content:flex-end}
.btn.small{
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
}
.icon{height:32px}
.time{
  height:32px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  font-weight:900;
  font-size:12px;
}
.time::-webkit-calendar-picker-indicator{filter: invert(1); opacity:.85}

/* v1.0 patch: 사용/실행/완료 버튼 1라인 정렬 + 붉은색 계열 */
.actions{display:flex; align-items:center; gap:8px; flex-wrap:nowrap}
.btn.small{height:32px; min-width:64px; display:inline-flex; align-items:center; justify-content:center}
.btn.danger{
  background: rgba(255, 60, 60, .18);
  border: 1px solid rgba(255, 60, 60, .35);
  color: var(--text);
}
.btn.danger:hover{
  background: rgba(255, 60, 60, .28);
  border-color: rgba(255, 60, 60, .55);
}

/* v1.0 patch: 입력(✎) 버튼이 없는 줄도 정렬 유지용 더미 */
.icon.placeholder{visibility:hidden; pointer-events:none;}

/* v1.0 patch: 수치(티켓/오드) 가독성 강화 + 완료/미완료 강조 */
.value.mono{
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
  padding:3px 10px;
  border-radius:10px;
  border:1px solid rgba(96,165,250,.18);
  background: rgba(96,165,250,.10);
  display:inline-block;
}
.value.status{
  font-weight:900;
  padding:3px 10px;
  border-radius:10px;
  display:inline-block;
  border:1px solid rgba(255,255,255,.10);
}
.value.status.done{
  color: var(--ok);
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}
.value.status.todo{
  color: var(--warn);
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.22);
}

/* v1.0 patch: 아이디 네모 + 직업칩 */
.idbox{
  width:auto !important;
  min-width:64px;
  padding:0 14px;
  background: rgba(255, 214, 102, .22);
  border: 1px solid rgba(255, 214, 102, .55);
  box-shadow: 0 0 0 2px rgba(255, 214, 102, .10) inset;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .2px;
  cursor:pointer;
}

.idbox{display:inline-flex;align-items:center;justify-content:center}

/* ===== Site pages / navigation (AdSense-friendly minimal shell) ===== */
.toprow{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.navlink{
  font-size:12px;
  font-weight:900;
  color:var(--text);
  text-decoration:none;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.navlink:hover{
  border-color: rgba(96,165,250,.35);
  box-shadow:0 0 0 3px rgba(96,165,250,.12);
}
.navlink.active{
  border-color: rgba(96,165,250,.45);
  background: rgba(96,165,250,.12);
}

.page{padding:16px 18px 30px}
.page-card{
  max-width:980px;
  margin:0 auto;
  background: rgba(17,28,51,.58);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px 16px;
}
.page-card h1{margin:0 0 10px; font-size:18px}
.page-card h2{margin:18px 0 8px; font-size:14px}
.page-card p, .page-card li{color:var(--text); line-height:1.6; font-size:13px}
.page-card a{color:#bfdbfe}
.page-card small{color:var(--muted)}

.intro{max-width:1200px; margin:12px auto 0}
.intro-card{
  background: rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px 14px;
}
.intro-card h2{margin:0 0 8px; font-size:13px}
.intro-card ul{margin:0; padding-left:18px}
.intro-card li{color:var(--muted); font-size:12px; line-height:1.6}

.footer{
  margin-top:16px;
  padding:18px 18px 22px;
  border-top:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(11,18,32,.25), rgba(17,28,51,.55));
}
.footer-inner{max-width:1200px; margin:0 auto}
.footer-title{font-weight:900; font-size:12px}
.footer-links{margin-top:6px; font-size:12px; color:var(--muted)}
.footer-links a{color:#bfdbfe; text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.sep{margin:0 6px; color:rgba(255,255,255,.35)}
.footer-sub{margin-top:8px; font-size:11px; color:var(--muted)}

@media (max-width: 720px){
  .navlink{padding:7px 9px;}
  .subtitle{font-size:11px}
}
