/* AI WorkHub 디자인(ADR-026, DESIGN.md). 인라인 스타일 금지(CSP) — 모든 모양은 클래스로. */
@font-face { font-family: "Pretendard"; font-weight: 400; src: url("/fonts/Pretendard-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 500; src: url("/fonts/Pretendard-Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 600; src: url("/fonts/Pretendard-SemiBold.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 700; src: url("/fonts/Pretendard-Bold.otf") format("opentype"); font-display: swap; }

:root {
  --navy: #1b2a4a; --navy-2: #243659; --navy-text: #c9d3e6;
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-weak: #eaf1ff;
  --bg: #f5f7fb; --card: #ffffff; --line: #e3e8f0; --line-2: #eef2f7;
  --text: #1f2937; --muted: #6b7280; --faint: #9aa4b2;
  --ok: #16a34a; --ok-weak: #e8f7ee; --run: #2563eb; --run-weak: #eaf1ff;
  --wait: #d97706; --wait-weak: #fdf3e3; --bad: #dc2626; --bad-weak: #fdecec; --mock: #7c3aed; --mock-weak: #f2ecfe;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Pretendard", "Malgun Gothic", sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.pre-line { white-space: pre-line; } /* 진행 문구의 줄바꿈(카피 검사 문제 목록) */
.mono { font-family: Consolas, monospace; font-size: 12.5px; }
.error { color: var(--bad); }
.ok-text { color: var(--ok); }
.right { margin-left: auto; }
.grow { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.start { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-s { gap: 6px; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
svg.i { width: 18px; height: 18px; flex: none; }
svg.i.s { width: 15px; height: 15px; }
svg.i.l { width: 22px; height: 22px; }

/* ---------- 로그인 ---------- */
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy) 0%, #2b4170 100%); padding: 24px; }
.login-card { width: 380px; max-width: 100%; background: var(--card); border-radius: 16px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 14px; }
.login-card .logo-big { width: 96px; height: auto; align-self: center; }
.login-card h1 { margin: 0; text-align: center; font-size: 22px; }
.login-card p.sub { margin: 0 0 6px; text-align: center; color: var(--muted); }
/* 회원가입(ADR-071) */
.login-card.wide { width: 520px; }
.login-card .field input { min-width: 0; }
.login-alt { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (max-width: 480px) { .login-card { padding: 28px 20px; } .login-card.wide .g2 { grid-template-columns: 1fr; } }
/* ---------- 로그인·회원가입 개편(auth-, 2026-10-06) ---------- */
.auth { min-height: 100vh; word-break: keep-all; overflow-wrap: anywhere; display: grid; grid-template-columns: minmax(340px, 38%) minmax(0, 1fr); background: var(--card); }
.auth-brand { background: var(--navy); color: var(--navy-text); min-width: 0; }
.auth-brand-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 48px 48px 32px; }
.auth-logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 8px; flex: none; }
.auth-logo img { max-width: 100%; max-height: 100%; display: block; }
.auth-brand-txt b { display: block; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.auth-brand-txt span { display: block; margin-top: 8px; font-size: 15px; color: var(--navy-text); }
.auth-brand-extra { margin-top: 8px; }
.auth-brand-foot { margin: auto 0 0; font-size: 12px; color: #8796b3; }
.auth-main { display: flex; justify-content: center; align-items: flex-start; padding: 64px 40px; min-width: 0; }
.auth-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 20px; margin: auto 0; }
.auth-form.narrow { max-width: 400px; }
.auth-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.auth-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px -8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.auth-back:hover { background: var(--bg); color: var(--text); }
.auth-sec { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 20px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-sec legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .2px; }
.auth-sec-desc { margin: -10px 0 0; font-size: 13px; color: var(--muted); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-field > label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.auth .auth-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d5dce8; border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.auth .auth-input::placeholder { color: var(--faint); }
.auth .auth-input:hover { border-color: #b9c4d6; }
.auth .auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.auth .auth-input[aria-invalid] { border-color: var(--bad); }
.auth .auth-input[aria-invalid]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.auth-pw { position: relative; }
.auth-pw .auth-input { padding-right: 48px; }
.auth-eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.auth-eye:hover, .auth-eye.on { color: var(--primary); background: var(--primary-weak); }
.auth-hint { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.auth-sec > .auth-hint { margin-top: -8px; }
.auth-err { font-size: 12.5px; color: var(--bad); line-height: 1.4; }
.auth-err:empty { display: none; }
.auth-alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bad-weak); color: #b91c1c; font-size: 13.5px; font-weight: 500; }
.auth-alert:empty { display: none; }
.auth-submit { height: 52px; width: 100%; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: background .15s; }
.auth-submit:hover { background: var(--primary-dark); }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-submit .spin { width: 15px; height: 15px; }
.auth button:focus-visible, .auth-drop:focus-within { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
.auth-alt { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-link { background: none; border: 0; padding: 2px 2px; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
/* 사진 칸 */
.auth-photo { display: flex; flex-direction: column; gap: 8px; }
.auth-drop-wrap { position: relative; }
.auth-drop { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; border: 1.5px dashed #c8d2e2; border-radius: 14px; background: #fafbfd; cursor: pointer; transition: border-color .15s, background .15s; }
.auth-drop:hover, .auth-drop.over { border-color: var(--primary); background: var(--primary-weak); }
.auth-drop.has { border-style: solid; padding-right: 96px; }
.auth-photo-prev { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; overflow: hidden; }
.auth-photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-drop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-drop-txt b { font-size: 14px; font-weight: 600; color: var(--text); }
.auth-drop-txt span { font-size: 12.5px; color: var(--muted); }
.auth-photo-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-photo-clear:hover { color: var(--bad); background: var(--bad-weak); }
/* 단계 안내(브랜드 패널·완료 화면) */
.auth-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: st; }
.auth-steps li { position: relative; padding-left: 44px; counter-increment: st; min-height: 30px; }
.auth-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--line-2); color: var(--muted); }
.auth-steps li.done::before { content: "✓"; background: var(--ok-weak); color: var(--ok); }
.auth-steps b { display: block; font-size: 14.5px; color: var(--text); }
.auth-steps span { display: block; font-size: 13px; color: var(--muted); }
.auth-steps.on-dark li::before { background: rgba(255, 255, 255, .1); color: #fff; }
.auth-steps.on-dark b { color: #fff; }
.auth-steps.on-dark span { color: var(--navy-text); }
.auth-done { align-items: stretch; }
.auth-done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-weak); color: var(--ok); display: grid; place-items: center; }
.auth-done h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; outline: none; }
.auth-done > p { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.auth-done .auth-steps { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand-in { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
  .auth-logo { width: 40px; height: 40px; border-radius: 10px; padding: 5px; }
  .auth-brand-txt b { font-size: 17px; letter-spacing: -.2px; }
  .auth-brand-txt span { margin-top: 0; font-size: 12px; }
  .auth-brand-extra, .auth-brand-foot { display: none; }
  .auth-main { padding: 28px 16px 40px; }
  .auth-form { margin: 0; }
}
@media (max-width: 560px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-head h1, .auth-done h1 { font-size: 24px; }
  .auth .auth-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .auth .auth-input, .auth-drop, .auth-submit { transition: none; } }
/* 프로필 사진·개인 설정·비밀번호 안내(ADR-073) */
button.who { background: none; border: 0; padding: 4px 6px; border-radius: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.who:hover { background: var(--bg); }
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pad-t { padding-top: 9px; }
.pwhint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .who .avatar { display: grid; } }

/* ---------- 앱 틀 ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--navy-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; }
.brand img { width: 44px; height: auto; }
.brand b { display: block; color: #fff; font-size: 17px; letter-spacing: -.2px; }
.brand span { font-size: 11.5px; color: var(--navy-text); }
.nav { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px; overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; } /* 왼쪽 메뉴 스크롤바 숨김(휠·터치로는 계속 스크롤됨, 2026-10-06 사용자) */
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--navy-text); font-weight: 500; }
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--primary); color: #fff; }
.nav .sec { font-size: 11px; color: #8796b3; padding: 14px 14px 4px; letter-spacing: .3px; }
.side-foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #8796b3; }
.main { display: flex; flex-direction: column; min-width: 0; }
.top { height: 64px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 14px; position: sticky; top: 0; z-index: 20; }
.search { position: relative; width: 420px; max-width: 45%; }
.top .search input { width: 100%; padding: 9px 12px 9px 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.search input:focus { outline: 2px solid var(--primary-weak); border-color: var(--primary); background: #fff; }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 24, 40, .12); max-height: 70vh; overflow-y: auto; padding: 8px; z-index: 40; }
.search-pop h6 { margin: 8px 8px 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.search-pop a, .search-pop button.res { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 8px; border-radius: 8px; color: var(--text); background: none; border: 0; cursor: pointer; }
.search-pop a:hover, .search-pop button.res:hover { background: var(--bg); text-decoration: none; }
.iconbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text); }
.iconbtn:hover { background: var(--bg); }
.dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.who b { display: block; font-size: 13.5px; }
.who span { font-size: 11.5px; color: var(--muted); }
.content { padding: 16px 14px 28px; max-width: 1480px; width: 100%; }
.mock-banner { background: var(--mock-weak); color: var(--mock); border-bottom: 1px solid #e3d6fd; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }

/* ---------- 머리말·카드 ---------- */
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.ph p { margin: 4px 0 0; color: var(--muted); }
.ph .actions { margin-left: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flat { box-shadow: none; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card h3 { margin: 16px 0 8px; font-size: 15px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head .link { margin-left: auto; font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.side-r { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.side-l { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.sticky { position: sticky; top: 88px; }

/* KPI */
.kpi { display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kpi .ic.run { background: var(--run-weak); color: var(--run); }
.kpi .ic.ok { background: var(--ok-weak); color: var(--ok); }
.kpi .ic.wait { background: var(--wait-weak); color: var(--wait); }
.kpi .ic.mock { background: var(--mock-weak); color: var(--mock); }
.kpi .lab { color: var(--muted); font-size: 13px; }
.kpi .num { font-size: 28px; font-weight: 700; line-height: 1.15; }
.kpi .hint { font-size: 12px; color: var(--muted); }
a.kpi-link { color: inherit; }
a.kpi-link:hover { text-decoration: none; }
a.kpi-link .card:hover { border-color: #c9d6ee; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.soft { background: var(--primary-weak); border-color: var(--primary-weak); color: var(--primary); }
.btn.danger { color: var(--bad); }
.btn.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 13px; }
.field > span small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="password"], input[type="search"], input:not([type]), input[type="number"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-weak); border-color: var(--primary); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--muted); }
textarea.code { font-family: Consolas, monospace; font-size: 12.5px; min-height: 260px; }
.form-grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; align-items: start; }
.form-grid > label { padding-top: 9px; font-weight: 600; font-size: 13px; }
.form-grid > label small { display: block; font-weight: 400; color: var(--muted); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* 배지·칩 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.badge.s-COMPLETED, .badge.ok, .badge.s-DONE, .badge.s-APPROVED, .badge.s-ACTIVE { background: var(--ok-weak); color: var(--ok); }
.badge.s-RUNNING, .badge.run { background: var(--run-weak); color: var(--run); }
.badge.s-AWAITING_APPROVAL, .badge.s-QUEUED, .badge.s-PENDING, .badge.wait, .badge.s-PROPOSED, .badge.s-PARTIAL { background: var(--wait-weak); color: var(--wait); }
.badge.s-FAILED, .badge.bad, .badge.s-INTERRUPTED, .badge.s-DENIED, .badge.s-REJECTED { background: var(--bad-weak); color: var(--bad); }
.badge.mock { background: var(--mock-weak); color: var(--mock); }
.badge.lock { background: #eef0f4; color: #5b6475; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; }
.chip.blue { background: var(--primary-weak); border-color: #cddcff; color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.arrow { color: var(--faint); }

/* 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-color: var(--primary); }
.tabs button .badge { margin-left: 6px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 9px 22px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.seg button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* 표 */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--bg); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f9fbff; }
table.t tr.sel td { background: var(--primary-weak); }
table.kv { width: 100%; border-collapse: collapse; }
table.kv th { width: 30%; text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.kv td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: pre-wrap; overflow-wrap: anywhere; }
table.kv td input, table.kv td select { padding: 6px 9px; }

/* 선택 카드 */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(236px, 100%), 1fr)); gap: 14px; }
/* 워크플로 카드(2026-10-06): 아이콘 · 이름 · 한 줄 · 단계 줄. 단계 줄이 카드 바닥에 맞춰 높이가 같아 보이게 한다. */
.pick { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: #b9cbf5; box-shadow: 0 8px 20px -12px rgba(37, 99, 235, .35); text-decoration: none; }
.pick:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pick.selected { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-weak), var(--card) 70%); box-shadow: 0 0 0 3px var(--primary-weak); }
.pick.selected .ic { background: var(--primary); color: #fff; }
.pick.locked { opacity: .55; cursor: not-allowed; box-shadow: none; }
.pick.locked:hover { border-color: var(--line); }
.pick-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; position: relative; }
.pick .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.pick b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.pick p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .tick { position: absolute; top: 26px; left: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); display: grid; place-items: center; }
.pick .tick svg { width: 11px; height: 11px; }
.pick-meta { font-size: 11.5px; font-weight: 600; color: #b45309; background: var(--wait-weak); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pick-foot { margin-top: auto; padding-top: 14px; }
/* 단계 줄: 점을 선으로 잇고 이름은 점 아래. 한 줄로만 놓고 넘치면 말줄임. */
.stages { display: flex; list-style: none; margin: 0; padding: 0; }
.stages li { flex: 1 1 0; min-width: 0; position: relative; padding-top: 16px; font-size: 11.5px; color: var(--muted); text-align: center; }
.stages li span { display: block; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages li::before { content: ""; position: absolute; top: 2px; left: 50%; width: 9px; height: 9px; margin-left: -6.5px; border-radius: 50%; background: var(--card); border: 2px solid #b9cbf5; z-index: 1; box-sizing: content-box; }
.stages li + li::after { content: ""; position: absolute; top: 7.5px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stages li.gate::before { border-radius: 2px; transform: rotate(45deg); border-color: var(--wait); }
.stages li.gate { color: #b45309; font-weight: 600; }
.pick:hover .stages li::before, .pick.selected .stages li::before { border-color: var(--primary); }
.pick:hover .stages li.gate::before, .pick.selected .stages li.gate::before { border-color: var(--wait); }
.pick.selected .stages li + li::after { background: #b9cbf5; }
.pick.selected .stages li { color: var(--text); }

/* 업로드 영역 */
.drop { border: 1.5px dashed #c5d0e0; border-radius: 12px; padding: 18px; display: flex; gap: 12px; align-items: center; color: var(--muted); background: #fafbfd; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-weak); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; }
.file button { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 0; display: grid; }

/* 계획·타임라인 */
.plan { list-style: none; margin: 0; padding: 0; }
.plan li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.plan li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -4px; width: 2px; background: var(--line); }
.plan .no { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.plan .no.ok { background: var(--ok); color: #fff; }
.plan .no.run { background: var(--run); color: #fff; }
.plan .no.bad { background: var(--bad); color: #fff; }
.plan .no.wait { background: var(--line-2); color: var(--faint); }
.plan b { display: block; }
.plan small { color: var(--muted); }

/* 목록 패널 */
.list { display: flex; flex-direction: column; }
.list .item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; text-align: left; background: none; width: 100%; color: inherit; }
.list .item:hover { background: var(--bg); }
.list .item.active { background: var(--primary-weak); border-color: #cddcff; }
.list .item .t1 { font-weight: 600; }
.list .item .t2 { font-size: 12px; color: var(--muted); }
.ib { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; flex: none; }
.ib.ok { background: var(--ok-weak); color: var(--ok); }
.ib.wait { background: var(--wait-weak); color: var(--wait); }
.ib.bad { background: var(--bad-weak); color: var(--bad); }
.progress { height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; width: 100%; }
.progress i { display: block; height: 100%; background: var(--primary); }
.w0 { width: 0; } .w25 { width: 25%; } .w33 { width: 33%; } .w50 { width: 50%; } .w67 { width: 67%; } .w75 { width: 75%; } .w100 { width: 100%; }

/* 알림·안내 */
.alert { border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.alert.info { background: var(--primary-weak); color: #1e3a8a; }
.alert.warn { background: var(--wait-weak); color: #92400e; }
.alert.bad { background: var(--bad-weak); color: #991b1b; }
.alert.ok { background: var(--ok-weak); color: #166534; }
.alert.mock { background: var(--mock-weak); color: var(--mock); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

/* 결과 본문 */
.md { line-height: 1.7; overflow-wrap: anywhere; }
.md h1 { font-size: 22px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; }
.md table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.md th { background: var(--bg); }
.md pre { background: var(--bg); padding: 12px; border-radius: 8px; overflow-x: auto; }
.md blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--primary); color: var(--muted); }
pre.box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; max-height: 420px; overflow-y: auto; margin: 0; }
details.fold { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
details.fold + details.fold { margin-top: 8px; }
details.fold summary { cursor: pointer; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; color: inherit; }
.thumb img { width: 100%; height: 110px; object-fit: cover; background: var(--bg); display: block; }
.thumb .ph-ic { height: 110px; display: grid; place-items: center; background: var(--bg); color: var(--faint); }
.thumb span { padding: 6px 8px; font-size: 12px; overflow-wrap: anywhere; }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.images figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.images img { width: 100%; display: block; }
.images figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12.5px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff .card { padding: 14px; }
.lockline { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 9px; background: #f4f6f9; color: #4b5563; font-size: 13px; }

/* 서랍·모달·토스트 */
.drawer-back, .modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: #fff; z-index: 61; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0, 0, 0, .12); }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 17px; }
.drawer .body { overflow-y: auto; padding: 14px 20px; flex: 1; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.note.open.warn { border-left: 4px solid var(--wait); }
.note.open.info { border-left: 4px solid var(--primary); }
.note .nt { font-weight: 600; }
.note .nb { font-size: 12.5px; color: #374151; margin: 4px 0 8px; white-space: pre-wrap; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 560px; max-width: calc(100% - 32px); max-height: calc(100% - 64px); overflow-y: auto; background: #fff; border-radius: 16px; z-index: 61; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.modal.wide { width: 860px; }
.modal h2 { margin: 0 0 6px; font-size: 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 80; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--bad); }

/* 폴더 탐색 */
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; }
.crumbs button { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; color: inherit; }
.tile:hover { border-color: #b9cbf5; }
.tile.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.tile img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.tile .ph-ic { height: 100px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; color: var(--faint); }
.tile b { font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 1200px) {
  .side-r, .side-l { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 68px 1fr; }
  .brand div, .nav a span, .nav .sec, .side-foot { display: none; }
  .nav a { justify-content: center; padding: 12px; }
  .g2, .g4, .side-r, .side-l, .diff, .form-grid { grid-template-columns: 1fr; }
  .search { max-width: none; flex: 1; }
  .who div { display: none; }
  .content { padding: 18px; }
}

img.logo-big { max-width: 100%; height: auto; border-radius: 10px; }
.card img.logo-big { flex: none; }
/* 그리드 칸이 내용 폭 때문에 넘치지 않게 */
.grid > * { min-width: 0; }
.list .item .grow { min-width: 0; }
/* 세로 쌓기 카드가 눌려 겹치지 않게, 탭 줄에 세로 스크롤 없게 */
.stack > * { flex-shrink: 0; }
.stack.page { gap: 14px; }
.tabs { overflow-y: hidden; }
/* 내려받기 미리보기 */
.preview-box { max-height: 70vh; overflow: auto; background: #e9edf3; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.preview-box img { max-width: 100%; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); background: #fff; }

/* ---------- 에이전트 카드(ADR-034, DESIGN.md) ---------- */
/* 에이전트 카드(2026-10-06 정리): 워크플로 카드(.pick)와 같은 결 — 얇은 테두리·14px 모서리·파란 hover. 한 줄 머리(아이콘·이름·모델·상태), 한 줄 태그, 아래 줄(규칙 버전 · 시작하기) */
.acard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; box-shadow: var(--shadow); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.acard[role="button"] { cursor: pointer; }
.acard[role="button"]:hover { border-color: #b9cbf5; box-shadow: 0 8px 20px -12px rgba(37, 99, 235, .35); }
.acard[role="button"]:active { transform: translateY(1px); }
.acard:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.acard[role="button"]:hover .acard-ic { background: var(--primary); color: #fff; }
.acard.selected { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-weak), var(--card) 70%); box-shadow: 0 0 0 3px var(--primary-weak); }
/* 잠김: 흐리게 하지 않고(글자 대비 유지) 바탕·아이콘만 회색으로 */
.acard.locked { background: var(--bg); box-shadow: none; }
.acard.locked[role="button"] { cursor: not-allowed; }
.acard.locked[role="button"]:hover { border-color: var(--line); box-shadow: none; }
.acard.locked .acard-ic, .acard.locked[role="button"]:hover .acard-ic { background: var(--line-2); color: var(--faint); }
.acard.locked .acard-title b, .acard.locked .acard-tag { color: var(--muted); }
.acard.locked .acard-tag { background: var(--line-2); }
.acard-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acard-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; transition: background .15s, color .15s; }
.acard-ic svg.i { width: 20px; height: 20px; }
.acard-title { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.acard-title b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-model { color: var(--muted); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-conn { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px 2px 7px; align-self: flex-start; white-space: nowrap; }
.acard-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.acard-conn.ok { background: var(--ok-weak); color: #15803d; }
.acard-conn.ok i { background: #22c55e; }
.acard-conn.bad { background: var(--bad-weak); color: var(--bad); }
.acard-conn.bad i { background: var(--bad); }
.acard-conn.mock { background: var(--mock-weak); color: var(--mock); }
.acard-conn.mock i { background: var(--mock); }
.acard-tick { color: var(--primary); align-self: flex-start; }
.acard-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acard-tag { background: var(--primary-weak); color: #1e3a6e; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.acard-tag.more { background: transparent; color: var(--muted); padding: 3px 2px; }
/* 넓은 카드는 태그 한 줄(넘치면 칩 안에서 말줄임) — 상세 서랍(.acard 밖)은 그대로 여러 줄 */
.acard:not(.compact) .acard-tags { flex-wrap: nowrap; overflow: hidden; }
.acard:not(.compact) .acard-tag { flex: none; }
.acard:not(.compact) .acard-tag.fit { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acard-upd { color: var(--faint); display: inline-flex; flex: none; }
.acard-lock { align-self: flex-start; }
.acard.compact { padding: 12px 14px; gap: 10px; box-shadow: none; }
.acard.compact .acard-ic { width: 36px; height: 36px; border-radius: 10px; }
.acard.compact .acard-ic svg.i { width: 18px; height: 18px; }
.acard.compact .acard-title b { font-size: 14.5px; }
.acard.compact .acard-model { font-size: 12px; }
.acard.compact .acard-tags { gap: 5px; }
.acard.compact .acard-tag { padding: 2px 8px; font-size: 11.5px; }
.acard-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); min-height: 41px; }
.acard-meta { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.acard-foot .acard-meta:last-child { color: var(--muted); }
.acard-go { padding: 5px 11px 5px 9px; gap: 5px; flex: none; }
.acard-go svg.i.s { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .acard, .acard-ic { transition: none; } .acard[role="button"]:active { transform: none; } }

/* ---------- 워크플로 편집(ADR-031) ---------- */
.wfb { display: grid; grid-template-columns: 300px 1fr; gap: 18px; min-height: 420px; }
.wfb-palette { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.wfb-palette .acard { cursor: grab; }
.wfb-pal-pair { border-left: 3px solid var(--mock); }
.wfb-lane { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; background: #fafbfe; }
.wfb-lane.over { border-color: var(--primary); background: var(--primary-weak); }
.wfb-empty { color: var(--faint); text-align: center; margin: auto; }
.wfb-slot { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 10px 12px; cursor: grab; }
.wfb-slot.pair { border-left-color: var(--mock); }
.wfb-slot.dragging { opacity: .4; }
.wfb-slot .no { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.wfb-slot .nm { flex: 1; min-width: 0; }
.wfb-slot .nm small { display: block; color: var(--muted); font-size: 11.5px; }
.wfb-slot .btn.icon { padding: 4px; }
.wfb-arrow { text-align: center; color: var(--faint); line-height: 1; }
.pick.add { border-style: dashed; border-color: #c3d2f2; align-items: center; justify-content: center; text-align: center; color: var(--primary); min-height: 150px; box-shadow: none; background: transparent; gap: 6px; }
.pick.add:hover { background: var(--primary-weak); border-color: var(--primary); box-shadow: none; }
.pick.add b { color: var(--primary); }
.pick .pick-actions { display: flex; gap: 6px; margin-top: 10px; }
.pick > .badge.lock { align-self: flex-start; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pick, .pick .ic { transition: none; } }
.badge.mine { background: var(--primary-weak); color: var(--primary); }
.badge.public { background: var(--ok-weak); color: var(--ok); }
@media (max-width: 900px) { .wfb { grid-template-columns: 1fr; } }

/* 스킬 적용 범위(ADR-035) */
.scope-pick select { width: auto; min-width: 150px; }

/* 상세페이지 자료(ADR-036) */
.file.ok { background: var(--ok-weak); color: var(--ok); }
.plan li.plan-gate .no { background: var(--wait-weak); color: var(--wait); }

.form-grid > .fg-full { grid-column: 1 / -1; }
.form-grid > .fg-full > .form-grid { padding: 4px 0 4px 12px; border-left: 3px solid var(--line); }

/* 상세페이지 결과·문구 수정(ADR-039) */
.dp-grid { align-items: start; }
.spin { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.rv-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.rv-opt { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 150px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; color: var(--muted); }
.rv-opt img { width: 132px; height: 150px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--bg); }
.rv-opt.active { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.dp-list { display: flex; flex-direction: column; gap: 10px; max-height: 78vh; overflow-y: auto; }
.dp-sec { text-align: left; border: 2px solid transparent; border-radius: 10px; background: #fff; padding: 6px; cursor: pointer; }
.dp-sec:hover { border-color: #c7d2e8; }
.dp-sec.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.dp-sec-title { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; margin: 2px 4px 6px; }
.dp-img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--line-2); }
.dp-noimg { padding: 30px; text-align: center; color: var(--faint); background: var(--bg); border-radius: 6px; }
.dp-panel textarea { width: 100%; }
.dp-sns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dp-sns img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 900px) { .dp-sns { grid-template-columns: 1fr; } }

/* 내 작업 실시간 흐름(ADR-041) */
.tabs.compact { gap: 0; overflow: hidden; flex-wrap: nowrap; }
.tabs.compact button { padding: 8px 8px; font-size: 13px; }
.tabs.compact button .badge { margin-left: 3px; }
.flowgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
@media (max-width: 900px) { .flowgrid { grid-template-columns: 1fr; } }
.flowcard { padding: 16px; }
.tlhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.tlhead b { color: var(--text); font-size: 13px; }
.tl { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 44px; margin-bottom: 14px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.tli { position: relative; }
.tdot { position: absolute; left: -44px; top: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--card); }
.tdot.sm { position: static; width: 24px; height: 24px; box-shadow: none; }
.tdot.done { background: var(--ok); color: #fff; } /* 완료는 진한 녹색으로 분명하게(사용자 요청 2026-10-05) */
.tdot.busy { background: var(--run); color: #fff; animation: dotpulse 1.6s ease-out infinite; }
.tdot.wait { background: var(--wait); color: #fff; }
.tdot.bad { background: var(--bad-weak); color: var(--bad); }
.tdot.idle { background: var(--line-2); color: var(--faint); }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 4px var(--card), 0 0 0 4px rgba(37, 99, 235, .35); } 100% { box-shadow: 0 0 0 4px var(--card), 0 0 0 12px rgba(37, 99, 235, 0); } }
.tc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.tc[role=button], .tmini[role=button], .pill[role=button] { cursor: pointer; }
.tc[role=button]:hover { border-color: #c7d2e3; }
/* 진행 중 카드: 테두리를 도는 파란 선(사용자 선택 A안 2026-10-05) */
.tc.busy { position: relative; border-color: #dbe6ff; }
.runline { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; overflow: visible; }
.runline rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 10px; fill: none; stroke: var(--run); stroke-width: 2.5px; stroke-linecap: round; stroke-dasharray: 18 82; animation: runline 2.6s linear infinite; }
@keyframes runline { to { stroke-dashoffset: -100; } }
.tc.done { border-color: #86d3a1; }
.tc.wait { border: 1.5px solid var(--wait); background: var(--wait-weak); }
.tc.wait .t1 { color: #92400e; }
.tc.bad { border-color: var(--bad); }
.tc.idle { background: var(--bg); }
.tc.idle .t1 { color: var(--muted); }
.tc.group { cursor: default; }
.tc.sel, .tmini.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.tc:focus-visible, .tmini:focus-visible, .pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tc .r1, .tmini .r1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc .r1.wrap { flex-wrap: wrap; }
.tc .t1, .tmini .t1 { font-weight: 700; font-size: 13.5px; }
.tc .meta, .tmini .meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tc .t2, .tmini .t2 { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc .t2.wrap { white-space: normal; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.tmini { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--card); min-width: 0; }
.tmini.done { border-left: 4px solid var(--ok); }
.tmini.busy { border-left: 3px solid var(--run); }
.tmini.bad { border-left: 3px solid var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1.5px solid transparent; }
.pill svg { width: 13px; height: 13px; }
.pill.done { background: var(--ok); color: #fff; }
.pill.busy { background: var(--run-weak); color: var(--run); animation: pillblink 1.2s ease-in-out infinite; } /* 진행 중 태그는 깜빡임 */
@keyframes pillblink { 50% { background: var(--run); color: #fff; } }
.pill.bad { background: var(--bad-weak); color: var(--bad); }
.pill.idle { background: var(--line-2); color: var(--muted); }
.pill.sel { border-color: currentColor; }
.revise { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.revise textarea { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tdot.busy, .pill.busy, .runline rect { animation: none; } }
.flog { max-height: 220px; overflow-y: auto; font-size: 13px; display: grid; gap: 4px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.fdetail h3 { margin: 0; }

.badge.s-SUPERSEDED { background: var(--line-2); color: var(--muted); }
/* AI 사용량 그래프(ADR-060) */
.uchart { width: 100%; height: auto; display: block; }
.uaxis { stroke: var(--line); }
.ulbl { font-size: 11px; fill: var(--muted); }
.u-claude { fill: #d97757; } .u-gpt { fill: #2563eb; }
.ukey { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.u-claude-bg { background: #d97757; } .u-gpt-bg { background: #2563eb; }
.kpi .big { font-size: 24px; display: block; margin: 4px 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* AI 사용하기(ADR-057): GPT 앱식 대화 화면 */
.ai-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; height: calc(100vh - 120px); min-height: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ai-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg); border-right: 1px solid var(--line); min-height: 0; }
.ai-search { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ai-list { flex: 1; overflow-y: auto; min-height: 0; }
.ai-group { margin-bottom: 12px; }
.ai-glabel { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 4px 6px; }
.ai-item { display: flex; align-items: center; gap: 4px; padding: 8px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.ai-item:hover, .ai-item.sel { background: #e8edf5; }
.ai-item.locked .ai-ititle { color: var(--faint); }
.ai-ititle { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-iact { display: none; gap: 2px; }
.ai-item:hover .ai-iact, .ai-item.sel .ai-iact, .ai-item:focus-within .ai-iact { display: inline-flex; }
.ai-ibtn { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted); border-radius: 4px; }
.ai-ibtn:hover { color: var(--text); background: #dde4ef; }
.job-del { align-self: center; opacity: 0; padding: 6px; }
.item:hover .job-del, .job-del:focus-visible { opacity: 1; }
.job-del:hover { color: var(--bad); }
.ai-empty { margin: 8px 6px; }
.ai-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.ai-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ai-log { flex: 1; overflow-y: auto; padding: 24px max(24px, calc((100% - 760px) / 2)); display: flex; flex-direction: column; gap: 18px; }
.ai-msg.user { align-self: flex-end; max-width: 75%; }
.ai-bubble { background: #eef2f8; border-radius: 16px; padding: 10px 14px; white-space: pre-wrap; line-height: 1.6; }
.ai-msg.assistant { align-self: stretch; }
.ai-answer { line-height: 1.7; }
.ai-wait { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.ai-img { display: block; margin-top: 10px; max-width: 420px; }
.ai-img img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.ai-hello { margin: auto; text-align: center; max-width: 640px; }
.ai-hello h2 { font-size: 24px; margin-bottom: 6px; }
.ai-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.ai-exb { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.ai-exb:hover { background: var(--bg); }
.ai-compose { display: flex; gap: 8px; align-items: flex-end; margin: 0 max(24px, calc((100% - 760px) / 2)); padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ai-input { flex: 1; border: 0; resize: none; font: inherit; line-height: 1.6; outline: none; max-height: 220px; background: transparent; }
.ai-send { border-radius: 10px; padding: 8px 10px; }
.ai-attach { border-radius: 10px; padding: 8px 10px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px max(24px, calc((100% - 760px) / 2)) 0; }
.ai-chips:empty { display: none; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: #f6f8fb; font-size: 12px; max-width: 260px; }
.ai-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-bubble .ai-img { max-width: 240px; }
.ai-note { text-align: center; margin: 6px 0 10px; }
@media (max-width: 760px) { .ai-wrap { grid-template-columns: 1fr; height: auto; } .ai-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; } .ai-ex { grid-template-columns: 1fr; } }
.login-card p.login-alt { margin: 4px 0 0; text-align: center; }

/* 프로필 사진 1:1 자르기 창 */
.crop-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.crop-canvas { width: 320px; height: 320px; max-width: 100%; border-radius: 12px; background: #e9ecf2; cursor: grab; touch-action: none; }
.crop-canvas:active { cursor: grabbing; }
.crop-tools { display: flex; align-items: center; gap: 10px; width: 320px; max-width: 100%; }
.crop-zoom { flex: 1; }

/* 회원가입 한 화면(스크롤 없음, 2026-10-06 사용자) — 넓은 화면에서만 촘촘하게, 좁은 화면은 위 규칙 그대로 세로로 */
@media (min-width: 901px) {
  .auth-main:has(.auth-form.compact) { padding: 28px 40px; align-items: center; }
  .auth-form.compact { max-width: 660px; gap: 14px; }
  .auth-form.compact .auth-head h1 { font-size: 24px; }
  .auth-form.compact .auth-head p { font-size: 14px; margin-top: 4px; }
  .auth-form.compact .auth-back { margin-bottom: 6px; }
  .auth-form.compact .auth-row { gap: 14px; }
  .auth-form.compact .auth-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .auth-form.compact .auth-input { height: 42px; }
  .auth-form.compact .auth-eye { top: 1px; }
  .auth-form.compact .auth-field { gap: 5px; }
  .auth-form.compact .auth-photo { align-self: end; }
  .auth-form.compact .auth-drop { padding: 6px 12px; gap: 12px; min-height: 42px; }
  .auth-form.compact .auth-drop.has { padding-right: 84px; }
  .auth-form.compact .auth-photo-prev { width: 52px; height: 52px; }
  .auth-form.compact .auth-drop-txt b { font-size: 13px; }
  .auth-form.compact .auth-drop-txt span { font-size: 12px; }
  .auth-form.compact > .auth-hint { margin-top: -6px; }
  .auth-form.compact .auth-submit { height: 46px; }
}
.login-card p.error:empty { display: none; }
.modal .stack > p.muted { white-space: pre-line; } /* 확인 창 문장의 줄바꿈 유지(스킬 정리 결과 등) */
