/* 업무비서 웹 — 세 사이트와 같은 색 규칙(ponc-tokens.css 값을 그대로 복사) */
:root {
  --accent: #2f6fe4; --accent-dark: #2563d6; --accent-soft: #e8f0fd; --accent-2: #1d9e75;
  --ink: #1a2233; --muted: #5b6577; --line: #e7ebf3; --bg: #f4f6fb; --card: #fff;
  --ok: #12a150; --bad: #e5484d; --warn: #e08600; --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 20px; background: #0f1729; color: #fff; }
.top a { color: #cfd8ee; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: #fff !important; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; }
.mark.big { width: 46px; height: 46px; border-radius: 14px; font-size: 24px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 12px; border-radius: 9px; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.who { font-size: 13px; color: #a9b6d6; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 14px; }
h3 { margin: 0 0 10px; font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid .card { margin: 0; }
.tile { display: block; color: inherit; }
a.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.big { font-size: 30px; font-weight: 800; margin: 6px 0; }
.big small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.meta { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
.dim { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: #1e4fb3; font-size: 12px; font-weight: 600; }
.pill.ok { background: #e7f8f0; color: #0f766e; }
.pill.off { background: #eef0f4; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.status.good { background: #e7f8f0; color: #0f766e; } .status.warn { background: #fff4e5; color: #b45309; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.flash { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: #e7f8f0; color: #0f766e; } .flash.bad { background: #fdecec; color: #c0392b; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-size: 13px; }
.preview { max-width: 420px; color: var(--muted); overflow-wrap: anywhere; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-right: 4px; vertical-align: middle; }
.empty { color: var(--muted); padding: 14px 4px; margin: 0; }
.form label { display: block; font-weight: 600; margin-bottom: 12px; }
.form .hint { font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label.check, .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: auto; margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row select { width: auto; margin: 0; min-width: 200px; }
.searchbar { display: flex; gap: 8px; margin-bottom: 12px; } .searchbar input { margin: 0; max-width: 320px; }
details.add > summary { cursor: pointer; font-weight: 700; } details.add[open] > summary { margin-bottom: 12px; }
.imgs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.imgbox { width: 150px; font-weight: 400 !important; } .imgbox img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.login-box { max-width: 380px; margin: 9vh auto; padding: 0 16px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .login-brand h1 { margin: 0; }
.login-box .card label { display: block; font-weight: 600; margin-bottom: 12px; }
.login-box .btn { width: 100%; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .top { gap: 8px; padding: 10px 12px; } .nav { order: 3; width: 100%; flex: none; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl.stack td { display: block; border: 0; padding: 2px 4px; }
}
