/* 스튜디오 시선 업무 프로그램 — 검정 · 흰색 + 강조색 */
:root {
  --ink: #17171A;
  --black: #16161A;
  --white: #FFFFFF;
  --accent: #FFB300;      /* 강조색: 주황빛 노랑 */
  --accent-ink: #17171A;
  --accent-soft: rgba(255, 179, 0, 0.22);
  --alert: #D92B26;       /* 알림 숫자 */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); }
body { font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: var(--ink); }
h1 { margin: 4px 0 0; font-size: 28px; font-weight: 700; }
h2 { margin: 0; font-size: 18px; }
h3 { margin: 0; font-size: 16px; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.pre { white-space: pre-line; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 레이아웃 */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 232px; max-width: 100%; background: var(--black); color: var(--white); padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; }
.side .logo { width: 132px; display: block; }
.side .sub { font-size: 12px; letter-spacing: 0.08em; margin-top: 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 8px; color: var(--white); text-decoration: none; }
.nav a.on { background: var(--white); color: var(--black); font-weight: 700; }
.acct { margin-top: auto; padding: 14px; border: 1px solid var(--white); border-radius: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.acct button { align-self: flex-start; min-height: 36px; padding: 0 12px; border: 1px solid var(--white); border-radius: 8px; background: transparent; color: var(--white); cursor: pointer; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 64px; }
.wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.hdr { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .grow { flex: 999 1 520px; min-width: 0; }
.cols > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .main { padding: 20px 16px 48px; } h1 { font-size: 24px; } }

/* 카드 */
.card { background: var(--white); border: 1px solid var(--ink); border-radius: 14px; padding: 22px 24px; }
.card.tight { padding: 8px 20px 12px; }
.box { border: 1px solid var(--ink); border-radius: 10px; padding: 12px 14px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 14px; background: var(--white); text-align: left; cursor: pointer; text-decoration: none; }
.kpi .num { font-size: 26px; font-weight: 700; }
.kpi.hot { background: var(--accent); color: var(--accent-ink); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.lined > * + * { border-top: 1px solid var(--ink); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--white); cursor: pointer; text-decoration: none; font-size: 14px; white-space: nowrap; }
.btn.primary { background: var(--black); color: var(--white); border-color: var(--black); font-weight: 700; font-size: 15px; }
.btn.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .6; cursor: default; }
.link { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.link.b { font-weight: 700; }
.dash { min-height: 44px; border: 1px dashed var(--ink); border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; }

/* 칩·탭·세그먼트 */
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; font-size: 14px; }
.chip.on { background: var(--black); color: var(--white); font-weight: 700; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--ink); border-radius: 10px; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--black); color: var(--white); font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ink); }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; cursor: pointer; font-size: 15px; }
.tabs button.on { border-bottom-color: var(--black); font-weight: 700; }

/* 상태 표시 */
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; white-space: nowrap; background: var(--white); }
.pill.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.pill.dark { background: var(--black); color: var(--white); border-color: var(--black); font-weight: 700; }
.pill.out { font-weight: 700; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--alert); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.date-badge { min-width: 56px; padding: 4px 0; border: 1px solid var(--ink); border-radius: 6px; text-align: center; font-weight: 700; font-size: 13px; }
.date-badge.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* 표 */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: 500; text-align: left; font-size: 13px; padding: 12px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid var(--ink); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.nw { white-space: nowrap; }
.muted-row { opacity: .5; }

/* 폼 */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.in { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--ink); border-radius: 10px; background: var(--white); font-size: 15px; }
textarea.in { padding: 12px; min-height: 90px; resize: vertical; line-height: 1.6; }
.err { font-weight: 700; font-size: 14px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px; border: 1px solid var(--ink); border-radius: 10px; }
.linkrow label.f { flex: 1 1 160px; }
.linkrow label.f.type { flex: 0 1 140px; }
.linkrow label.f.url { flex: 2 1 220px; }

/* 목록 줄 */
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--ink); }
.item:first-child { border-top: 0; }
.item .grow { flex: 1 1 240px; min-width: 0; }
.boards { flex: 1 1 240px; min-width: 0; border: 1px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.boards a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.boards a.on { background: var(--black); color: var(--white); }
.boards a.mine { font-weight: 700; }
.fresh { background: var(--accent-soft); }

/* 로그인 */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth .inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth .brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth .brand img { width: 200px; }

/* 토스트 */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; z-index: 50; max-width: 90vw; }
#toast.err { background: var(--alert); }
.loading { padding: 40px 0; text-align: center; }
.thumb { width: 150px; display: flex; flex-direction: column; gap: 6px; }
.thumb img { width: 150px; height: 110px; object-fit: cover; border: 1px solid var(--ink); border-radius: 8px; }
.thumb .ph { width: 150px; height: 110px; border: 1px solid var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
