/* 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: #c96442; --primary-dark: #b05535; --primary-weak: #f9ede7; /* Claude 테라코타(2026-10-19 Y♥ANA) */
  --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);

  /* 화면 테마(2026-10-08): 아래 값은 화이트, html[data-theme=dark]에서 블랙(Claude 같은 중성 검정) */
  --soft: #fafbfd; --soft-2: #e9edf3; --line-strong: #c7d2e3; --primary-line: #ecc6b6; --primary-ink: #7a3218;
  --w-hover: #f5f4ef; --w-soft: #faf9f5; --w-bubble: #f0eee6; --w-sel: #ebe8df; --w-line: #e5e2d9; --w-line2: #ebe8df; --w-text: #292524; --w-muted: #8a8577;
}
* { 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); }

.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; }

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 .field input { min-width: 0; }
.login-alt { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .login-card { padding: 28px 20px; } }
/* ---------- 로그인·회원가입 개편(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: var(--card); 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-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 var(--line-strong); border-radius: 10px; background: var(--card); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.auth .auth-input::placeholder { color: var(--faint); }
.auth .auth-input:hover { border-color: var(--line-strong); }
.auth .auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(201, 100, 66, .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-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(201, 100, 66, .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 var(--line-strong); border-radius: 14px; background: var(--soft); 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: var(--soft); }
@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 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); }

/* ---------- 앱 틀 ---------- */
.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; text-decoration: none; cursor: pointer; }
.brand:hover, .brand:hover *, .brand:focus, .brand:focus * { text-decoration: none; } /* 로고 링크에 밑줄 없음(2026-10-08 사용자) */
.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; }

.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); }
/* 화면을 옮길 때 본문(main, tabindex=-1)으로 초점을 옮기는데 브라우저 기본 초점 테두리가 진한 줄로 보였다가 사라졌음(2026-10-10 사용자) */
.content:focus { outline: none; }
.search input:focus { outline: 2px solid var(--primary-weak); border-color: var(--primary); background: var(--card); }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }

.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; overflow: hidden; flex: none; }
.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%; }

/* ---------- 머리말·카드 ---------- */
.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; }

.grid { display: grid; gap: 14px; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); 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.danger { color: var(--bad); }

.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"], input[type="date"], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
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.ok { background: var(--ok-weak); color: var(--ok); }
.badge.run { background: var(--run-weak); color: var(--run); }
.badge.wait { background: var(--wait-weak); color: var(--wait); }
.badge.bad { background: var(--bad-weak); color: var(--bad); }
.badge.mock { background: var(--mock-weak); color: var(--mock); }
.badge.lock { background: var(--soft); color: var(--muted); }
.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; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; }
.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: var(--card); 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: var(--soft); }
table.t tr.click a { color: inherit; }
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; }

/* 워크플로 카드(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: var(--primary-line); box-shadow: 0 8px 20px -12px rgba(201, 100, 66, .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 .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; }

/* 업로드 영역 */
.drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 18px; display: flex; gap: 12px; align-items: center; color: var(--muted); background: var(--soft); 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: var(--card); font-size: 12.5px; }
.file button { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 0; display: grid; }

/* 목록 패널 */
.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: var(--primary-line); }

.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); }

.w0 { width: 0; }      

/* 알림·안내 */
.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; }
.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: var(--card); }
details.fold + details.fold { margin-top: 8px; }
details.fold summary { cursor: pointer; font-weight: 600; }

.thumb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); 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: var(--card); }
.images img { width: 100%; display: block; }
.images figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12.5px; }

/* 서랍·모달·토스트 */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 60; }
/* 팝업 위의 팝업(메일 창 위 메일 열기·휴지통 확인 등): 뒤를 더 어둡게, 위 팝업은 테두리·그림자로 구별(2026-10-20 Y♥ANA) */
.modal ~ .modal-back { background: rgba(0, 0, 0, .5); }
.modal ~ .modal { border: 1px solid var(--line-strong, var(--line)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }

.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); }

.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: var(--card); 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); }

@media (max-width: 900px) {
  .app { grid-template-columns: 68px 1fr; }
  .brand div, .nav a span { display: none; }
  .nav a { justify-content: center; padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .search { max-width: none; flex: 1; }
  .who div:not(.avatar) { 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; }

/* ---------- 에이전트 카드(ADR-034, DESIGN.md) ---------- */

/* ---------- 워크플로 편집(ADR-031) ---------- */
.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); }

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

.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; } }

/* 내 작업 실시간 흐름(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; }

 

 /* 진행 중 태그는 깜빡임 */

 

 

td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 프로필 사진 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: var(--soft-2); 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; } /* 확인 창 문장의 줄바꿈 유지(스킬 정리 결과 등) */

/* ---------- 새 작업 채팅(2026-10-07 사용자: Claude 채팅 화면과 같은 모습) ---------- */
.content:has(.cc) { padding: 0; max-width: none; }

.cc { min-height: 0; display: flex; flex-direction: column; background: var(--card); color: var(--w-text); }
.cc.cc-empty { justify-content: center; }
.cc.cc-empty .cc-log { display: none; }
.cc-log { flex: 1; overflow-y: auto; min-height: 0; }
.cc-thread { max-width: 760px; margin: 0 auto; padding: 28px 16px 12px; display: flex; flex-direction: column; gap: 22px; }
.cc-bottom { padding: 0 16px 14px; position: relative; }
.cc-hello, .cc-compose { max-width: 760px; margin-left: auto; margin-right: auto; }
.cc-hello { display: none; text-align: center; font-family: Georgia, "Noto Serif KR", "Times New Roman", serif; font-weight: 400; font-size: 17px; letter-spacing: -.2px; color: var(--w-text); margin-bottom: 26px; }
.cc.cc-empty .cc-hello { display: block; }
.cc-box { position: relative; background: var(--card); border: 1px solid var(--w-line); border-radius: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); padding: 12px 12px 12px 14px; transition: border-color .15s, box-shadow .15s; }
.cc-line { display: flex; align-items: flex-end; gap: 8px; }
.cc-line .cc-input { flex: 1; min-width: 0; align-self: center; }
.cc-box:focus-within { border-color: var(--w-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.cc-box.drag { border-color: #d97757; box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.cc-input { display: block; width: 100%; min-height: 0; border: 0; outline: none; resize: none; font: inherit; font-size: 16px; line-height: 1.55; background: transparent; overflow-y: hidden; padding: 4px 6px; color: inherit; box-shadow: none; }
.cc-input::placeholder { color: var(--w-muted); }
.cc-tools { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 4px; }
.cc-plus, .cc-send { width: 32px; height: 32px; padding: 0; border-radius: 8px; display: grid; place-items: center; cursor: pointer; line-height: 0; flex: none; }
.cc-plus .i, .cc-send .i { width: 16px; height: 16px; }
.cc-plus { border: 1px solid var(--w-line); background: var(--card); color: var(--w-text); }
.cc-plus:hover { background: var(--w-hover); }
.cc-send { border: 0; background: #c96442; color: #fff; }
.cc-send:hover { background: #b5573a; }
.cc-send:disabled { opacity: .5; cursor: default; }

.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-chips:empty { display: none; }

.cc-user { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.cc-queued { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 6px; flex-basis: 100%; width: 100%; } /* 대답 중에 보낸 글(대기열) */
.cc-ububble { background: var(--w-bubble); border-radius: 16px; padding: 10px 14px; max-width: 85%; white-space: pre-wrap; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.cc-ububble .cc-chips { margin: 8px 0 0; }
.cc-bot { line-height: 1.7; display: flex; flex-direction: column; gap: 10px; }
.cc-bot p { margin: 0; }
.cc-bot ul { margin: 0; padding-left: 20px; }
.cc-fold { border: 1px solid var(--w-line); border-radius: 12px; background: var(--card); }
.cc-fold-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--w-text); text-align: left; cursor: pointer; border-radius: 12px; }
.cc-fold-head:hover { background: var(--w-soft); }
.cc-chev { display: grid; color: var(--w-muted); transition: transform .15s; }
.cc-fold.open > .cc-fold-head .cc-chev { transform: rotate(90deg); }
.cc-fold-body { display: none; padding: 6px 14px 14px; border-top: 1px solid var(--w-line2); font-size: 14px; }
.cc-fold.open > .cc-fold-body { display: block; }
.cc-thinking { background: linear-gradient(90deg, var(--w-text) 30%, var(--w-muted) 50%, var(--w-text) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ccshine 1.6s linear infinite; }
@keyframes ccshine { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.cc-err { color: #b91c1c; }

@media (max-width: 700px) {  .cc-hello { font-size: 15px; }  }

.cc .cc-input, .cc .cc-input:focus, .cc .cc-input:focus-visible { border: 0; outline: none; box-shadow: none; background: transparent; }
.cc .btn.primary { background: #c96442; border-color: #c96442; color: #fff; }
.cc .btn.primary:hover { background: #b5573a; border-color: #b5573a; }
.cc .btn:not(.primary) { background: var(--card); border-color: var(--w-line); color: var(--w-text); }
.main:has(.cc) { height: 100dvh; overflow: hidden; }
.main:has(.cc) .content { flex: 1; min-height: 0; }

.cc-send.stop .i { width: 12px; height: 12px; fill: currentColor; }

.cc-img { margin: 0; position: relative; width: min(100%, 512px); }
.cc-img img { width: 100%; height: auto; border-radius: 16px; display: block; }

.cc-ind { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.cc-ind.dot-done { background: var(--primary); }

.cc-ind.dot-waiting { background: #f59e0b; }
.cc-ind.spin-ind { width: 12px; height: 12px; border: 2px solid var(--w-line); border-top-color: #c96442; animation: cc-spin .8s linear infinite; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cc-ind.spin-ind { animation-duration: 2.4s; } }

/* 스크롤바: Claude처럼 가늘고 옅게, 위아래 화살표 없이(2026-10-08·10-11 사용자).
   Edge·Chrome은 표준 scrollbar-width/color를 쓰면 아래 ::-webkit 설정을 무시하고 화살표가 생겨서, 표준 설정은 Firefox에만 */
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .22) transparent; }
  .side, .side * { scrollbar-color: rgba(255, 255, 255, .25) transparent; }
  html[data-theme="dark"], html[data-theme="dark"] * { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .22); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .38); }
/* 어두운 왼쪽 메뉴는 밝은 막대 */
.side ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .25); }

/* ---------- 블랙 테마(개인 설정, 2026-10-08 사용자: 남색이 아닌 Claude 같은 검정) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #1f1e1d; --navy-2: #2c2b29; --navy-text: #c2c0b6;
  --primary: #d97757; --primary-dark: #c96442; --primary-weak: #3a2a24; --primary-line: #6b4130; --primary-ink: #f0b9a0;
  --bg: #262624; --card: #30302e; --line: #3e3e3a; --line-2: #363633; --line-strong: #4a4945;
  --text: #ecebe6; --muted: #a6a39b; --faint: #7f7c74;
  --ok-weak: #18301f; --run-weak: #1f2a3d; --wait-weak: #3a2d17; --bad-weak: #3e2020; --mock-weak: #2e2540;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
  --soft: #2b2b29; --soft-2: #222220;
  --w-card: #30302e; /* 첨부 카드(다크) */
  --w-hover: #3a3a37; --w-soft: #2b2b29; --w-bubble: #3a3a37; --w-sel: #41413d; --w-line: #4a4945; --w-line2: #3e3e3a; --w-text: #ecebe6; --w-muted: #a6a39b;
}
html[data-theme="dark"] .alert.info { color: #bcd3ff; }
html[data-theme="dark"] .alert.warn { color: #f3c98b; }
html[data-theme="dark"] .alert.bad, html[data-theme="dark"] .cc-err, html[data-theme="dark"] .auth-alert { color: #f5b4b4; }

html[data-theme="dark"] .alert.ok { color: #a7e3bd; }
html[data-theme="dark"] .badge.lock { color: var(--muted); }
html[data-theme="dark"] .cc-hello { color: var(--w-text); }
html[data-theme="dark"] .toast { background: #45443f; }
html[data-theme="dark"] .modal-back { background: rgba(0, 0, 0, .6); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }

/* 첨부 카드(Claude처럼, 2026-10-09): 그림 썸네일 · 문서 카드 */
.cc-atts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 6px; }
.cc-user:has(.cc-atts) { flex-direction: column; align-items: flex-end; } /* 첨부 위, 글 아래(Claude처럼, 2026-10-09) */
.cc-att { position: relative; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-card, #fff); overflow: hidden; }
.cc-att.img { width: 120px; height: 120px; }
.cc-att.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-att.doc { width: 220px; }
.cc-att-body { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: inherit; text-decoration: none; }
.cc-att-ic { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #6b7280; }
.cc-att.ext-pdf .cc-att-ic { background: #d94b3d; }
.cc-att.ext-xlsx .cc-att-ic, .cc-att.ext-xls .cc-att-ic, .cc-att.ext-csv .cc-att-ic { background: #1f8a4c; }
.cc-att.ext-docx .cc-att-ic, .cc-att.ext-doc .cc-att-ic { background: #2b5fd9; }
.cc-att.ext-pptx .cc-att-ic { background: #d9772b; }
.cc-att-t { min-width: 0; display: grid; }
.cc-att-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-att-t small { font-size: 12px; color: var(--w-muted); }
.cc-att-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cc-chips .cc-att { flex: none; }

.md table { display: block; overflow-x: auto; } /* 결과 본문의 넓은 표도 좁은 화면에서 넘치지 않게 */

/* 큐레이션 분석 표처럼 table-wrap 없이 들어간 표도 좁은 화면에서 가로로 넘치지 않게(2026-10-09 감사) */
details.fold > table.t { display: block; overflow-x: auto; }

/* 로그인·회원가입 색 = 로고(검은색)와 같게(2026-10-11 사용자: 푸른색 아님). 배경 검정, 버튼 검정, 밝은·어두운 테마 공통 */
.login, .auth { --ci-ink: #1b3068; --ci-ink-hover: #132550; } /* 버튼·링크·초점도 배경과 같은 남색(2026-10-11 사용자) */
.login { background: #14244f; } /* 넓은 면은 같은 색도 밝아 보여서 버튼(#1B3068)보다 한 단계 진하게 — 눈에는 버튼과 같은 남색(2026-10-11 사용자) */
.login-card .btn.primary, .auth-submit { background: var(--ci-ink); border-color: var(--ci-ink); color: #fff; }
.login-card .btn.primary:hover, .auth-submit:hover { background: var(--ci-ink-hover); border-color: var(--ci-ink-hover); }
.login .auth-link, .auth .auth-link { color: var(--ci-ink); }
.login-card input:focus, .auth .auth-input:focus { border-color: var(--ci-ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .1); outline: none; }
.auth-brand { background: #14244f; }
/* 어두운 테마: 카드가 어두우니 버튼·링크는 밝게 */
html[data-theme="dark"] .login-card .btn.primary, html[data-theme="dark"] .auth-submit { background: #f2f1ec; border-color: #f2f1ec; color: #111; }
html[data-theme="dark"] .login-card .btn.primary:hover, html[data-theme="dark"] .auth-submit:hover { background: #fff; }
html[data-theme="dark"] .login .auth-link, html[data-theme="dark"] .auth .auth-link { color: #f2f1ec; }
html[data-theme="dark"] .login, html[data-theme="dark"] .auth-brand { background: var(--bg); } /* 어두운 테마는 남색 대신 회색 배경(Y♥ANA 2026-10-20) */
/* 로그인 카드 간격(2026-10-11 사용자: 부제목을 빼고 다시 맞춤) — 로고 · 제목 묶음 아래를 넓게, 입력칸끼리는 고르게 */
.login-card { gap: 16px; padding: 40px 36px 32px; }
.login-card .logo-big { margin-bottom: -4px; }
.login-card h1 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.4px; }
.login-card .btn.primary { margin-top: 6px; }
.login-alt { margin-top: 2px; }
/* 회원가입 왼쪽 로고: 흰 네모 없이, 로고를 흰색으로(2026-10-11 사용자) — 흑백 로고를 뒤집어 흰 선 */
.auth-logo { width: 104px; height: auto; aspect-ratio: 231 / 187; padding: 0; border-radius: 0; background: none; }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
@media (max-width: 900px) { .auth-logo { width: 48px; height: auto; padding: 0; } }
/* 로그인·회원가입은 공식 로고(컬러 CI, logo-ci.png 500×405) — 2026-10-11 사용자. 회원가입 왼쪽은 흰 네모 없이 색 그대로 */
.login-card .logo-big { width: 128px; }
.auth-logo { aspect-ratio: 500 / 405; }
.auth-logo img { filter: none; }

/* 비밀값 가림(관리자 → 연동): 비밀번호 칸 대신 — 브라우저 자동 채우기 막음 */
input.masked { -webkit-text-security: disc; }
.row > input.mono { flex: 1; min-width: 0; }

/* 권한 요청 대기 수(D-059) */
.ad-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 17px; }
.ad-badge.warn { background: #e8890c; }

.ws-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.ws-box.flush { padding: 0; overflow: hidden; }
.ws-box h3 { margin: 4px 0 0; font-size: inherit; font-weight: 700; }
.ws-box-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ws-line { display: flex; gap: 12px; align-items: center; min-height: 34px; }
.ws-lab { width: 72px; flex: none; font-weight: 600; }
.ws-lab.in { width: auto; }
.ws-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.btn.sm.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.ws-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; cursor: pointer; }
.ws-check input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.ws-check.locked { color: var(--muted); }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.ws-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--card); color: var(--muted); }
.ws-search input { border: 0; outline: 0; flex: 1; padding: 9px 0; background: transparent; min-width: 0; color: var(--text); }

.ws-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ws-kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-kpi small { display: block; color: var(--muted); }
.ws-kpi b { display: block; font-size: 18px; margin-top: 2px; }
.ws-kpi b.up { color: var(--primary); }
.ws-kpi b.down { color: var(--bad); }
.ws-kpi-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; flex: none; }
.q-lock { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.q-total td { font-weight: 700; background: var(--primary-weak); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-ask { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #f0a040; background: color-mix(in srgb, #f0a040 8%, var(--card)); border-radius: var(--radius); padding: 10px 14px; color: #c2410c; }
.ws-ask input { flex: 1; min-width: 160px; }
.ws-askbox { display: flex; flex-direction: column; gap: 8px; border: 1px solid #f0a040; background: color-mix(in srgb, #f0a040 8%, var(--card)); border-radius: var(--radius); padding: 12px 14px; }
.ws-askbox > b { color: #c2410c; display: flex; align-items: center; gap: 4px; }
.ws-askbox .btn { align-self: flex-end; }
.ws-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ws-field small { color: var(--muted); }
.ws-field .req { color: var(--bad); font-style: normal; }

/* 상품 */
.c-filters { display: grid; grid-template-columns: minmax(260px, 360px) repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 14px; } /* 첫 칸 = 아래 목록과 같은 너비, 브랜드 칸 시작 = 오른쪽 상세 시작(Y♥ANA 2026-10-20) */
.c-filters select { width: 100%; }
.c-wrap { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.c-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 210px); overflow: auto; padding: 10px; }
.c-item { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; width: 100%; }
.c-item:hover { background: var(--bg); }
.c-item.on { border-color: var(--primary); background: var(--primary-weak); }
.c-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.c-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.c-thumb.sm { width: 40px; height: 40px; }
.c-thumb img { width: 100%; height: 100%; object-fit: contain; }
.c-noimg { color: var(--faint); display: grid; place-items: center; width: 100%; height: 100%; }
.c-detail { display: flex; flex-direction: column; gap: 14px; }
.c-title { display: flex; align-items: center; gap: 10px; }
.c-title h2 { margin: 0; font-size: 18px; }
.c-badge { padding: 2px 10px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.c-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.c-photo { background: var(--bg); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.c-photo img { width: 100%; height: 100%; object-fit: contain; }
.c-kv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.c-kv h3 { margin: 0 0 6px; }
.c-kv table { width: 100%; border-collapse: collapse; }
.c-kv th { width: 42%; text-align: left; font-weight: 400; color: var(--muted); padding: 5px 0; border-top: 1px solid var(--line-2); }
.c-kv td { padding: 5px 0; border-top: 1px solid var(--line-2); }

.w-2col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.w-sticky { position: sticky; top: 0; }
.w-search-wrap { display: flex; flex-direction: column; gap: 6px; }
.w-pick { display: flex; flex-direction: column; gap: 4px; }
.w-radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.w-radio input { accent-color: var(--primary); margin-top: 3px; }
.w-radio span { display: flex; flex-direction: column; }
.w-drop { display: flex; gap: 12px; align-items: center; justify-content: center; border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px; background: transparent; color: var(--primary); cursor: pointer; text-align: left; }
.w-drop:hover, .w-drop.on { background: var(--primary-weak); border-color: var(--primary); }
.w-drop span { display: flex; flex-direction: column; color: var(--text); }
.w-file { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.w-file span { flex: 1; min-width: 0; }
.w-file .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.w-cnt { align-self: flex-end; margin-top: -6px; }
.w-2col textarea, .w-2col select { width: 100%; box-sizing: border-box; }

.w-preview { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); max-height: 640px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.w-preview img { width: 100%; display: block; }
.w-preview.pdf { height: 620px; max-height: none; overflow: hidden; }
.w-preview iframe { width: 100%; height: 100%; border: 0; }
.w-preview .q-pv { height: 100%; background: #fff; } .w-preview .c-pz > img { width: auto; } /* 견적서 미리보기 그림(2026-10-21) */
.w-empty { margin: auto; padding: 40px 20px; text-align: center; }
.w-loading { color: var(--primary); }
.w-loading .spin { width: 28px; height: 28px; margin: 0; border-width: 3px; }
.w-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.w-qt input { padding: 6px 8px; }
.w-totals { margin-left: auto; min-width: 260px; display: flex; flex-direction: column; }
.w-totals div { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.w-totals .tot { background: var(--primary-weak); color: var(--primary); border-radius: 8px; border: 0; }
@media (max-width: 1200px) {   .w-2col, .c-body { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .c-wrap, .w-fields, .c-filters { grid-template-columns: 1fr; } .ws-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-line { flex-direction: column; align-items: flex-start; } .c-list { max-height: 40vh; } }
.wh-page table.t td.nm { white-space: normal; min-width: 240px; max-width: 420px; }

.c-body.one { grid-template-columns: 1fr; }
.push { margin-left: auto; }
.row.nowrap { flex-wrap: nowrap; }
.row.top { align-items: flex-start; }
.w-num { width: 70px; }
.w-num.s { width: 56px; }
.w-2col { grid-template-columns: minmax(0, 1fr) 400px; }
table.t.w-qt td, table.t.w-qt th { padding: 8px 6px; white-space: nowrap; }
table.t.w-qt td:first-child { white-space: normal; min-width: 200px; }
table.t.w-qt input.w-num { width: 64px; min-width: 64px; }
table.t.w-qt input.w-num.s { width: 52px; min-width: 52px; }
@media (max-width: 1200px) { .w-2col { grid-template-columns: 1fr; } }

.q-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.q-badge.nv { background: #e7f7ec; color: #12893d; }
.q-badge.wg { background: #fff1e6; color: #c2570c; }
.q-badge.rk { background: #e8f0ff; color: #1d4ed8; }
.q-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 10px; color: var(--faint); text-align: center; line-height: 1.2; }
.q-resbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-tool { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.q-tool:hover { background: var(--bg); }
th.q-sort { cursor: pointer; user-select: none; }
th.q-sort.asc::after { content: " ▲"; color: var(--primary); }
th.q-sort.desc::after { content: " ▼"; color: var(--primary); }
.q-warn { color: var(--bad); font-weight: 600; }

/* 조회 조건 칸 — 디자인 시안 적용(2026-10-19, public/mock/query-proposal.css, 플랫폼 색 점은 빼기: Y♥ANA) */

/* 조건 상자: 왼쪽 이름 칸 고정 폭, 줄 간격 좁게(빈 공간 줄이기) */
.qp-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 12px 16px; }
.qp-form .ws-line { align-items: flex-start; min-height: 0; }
.qp-form .ws-lab { padding-top: 7px; }
.qp-form .ws-sep { align-self: center; }
.qp-form .ws-lab.in { padding-top: 0; align-self: center; } /* 줄 안의 이름(비교)은 가운데 — 왼쪽 줄 이름의 위 여백이 따라와 아래로 쏠림(2026-10-20) */
.qp-in { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; flex: 1; }

/* 회색 묶음(하나 고르기·여러 개 고르기 같은 모양) */
.qp-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.qp-seg .btn.sm { border-color: transparent; background: transparent; color: var(--text); font-weight: 500; min-width: 0; padding: 5px 12px; }
.qp-seg .btn.sm:hover { background: var(--card); }
.qp-seg .btn.sm.on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 잠긴 칸: 골라도 파랑 가득이 아니라 파란 테두리 + 자물쇠(승인 필요 표시) */
.qp-seg .btn.sm.qp-lk { color: var(--muted); }
.qp-seg .btn.sm.qp-lk.on { background: var(--primary-weak); border-color: var(--primary-line); color: var(--primary-ink); }
.qp-seg .btn.sm:disabled { color: var(--faint); cursor: not-allowed; background: transparent; }

.qp-hint { color: var(--muted); font-size: 12.5px; }

/* 칸: 묶음별 작은 제목 + 묶음 하나씩 줄바꿈 */
.qp-groups { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.qp-grp { display: inline-flex; align-items: center; gap: 6px; }
.qp-grp > small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* 기간 + 달력 */
.qp-cal-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.qp-calbtn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.qp-calbtn.on { color: var(--primary); border-color: var(--primary-line); background: var(--primary-weak); font-weight: 600; }
.qp-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.qp-pop-h { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.qp-pop-h button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.qp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12.5px; }
.qp-days span { padding: 5px 0; border-radius: 6px; }
.qp-days .w { color: var(--muted); }
.qp-days .x { color: var(--faint); }
.qp-days .in { background: var(--primary-weak); border-radius: 0; }
.qp-days .end { background: var(--primary); color: #fff; }
.qp-pop-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* 결과 머리: 제목·조건 요약 왼쪽, 받기 아이콘 오른쪽 위 */
.qp-res-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.qp-res-h .q-tool { padding: 4px 8px; }
.qp-tools { display: inline-flex; gap: 4px; }

table.t td.num, table.t th.num { text-align: right; }

@media (max-width: 860px) {
  .qp-form .ws-line { flex-direction: column; gap: 4px; }
  .qp-form .ws-lab { padding-top: 0; }
  .qp-form .ws-sep { display: none; }
  .qp-groups { flex-direction: column; align-items: flex-start; }
  .qp-pop { left: 0; right: auto; }
}

.qp-day { cursor: pointer; }
.qp-days .x { cursor: default; }
.qp-pop[hidden] { display: none; }
.wh-page table.t td.nm .row.nowrap > span { white-space: normal; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.wh-page.q-page { padding: 20px 20px; }

/* 고르는 줄 Claude식(2026-10-19 Y♥ANA: 파랑 덩어리 대신 차분하게) */
.qp-seg .btn.sm { color: var(--muted); }
.qp-seg .btn.sm.on { background: var(--card); border-color: var(--line); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.qp-seg .btn.sm.qp-lk.on { background: transparent; border: 1px dashed var(--primary-line); color: var(--primary-ink); box-shadow: none; }
/* 항목 묶음 정렬(2026-10-19 Y♥ANA): 묶음마다 한 줄, 묶음 이름은 같은 폭으로 → 단추 시작점이 세로로 맞음 */
.qp-sub { align-self: center; padding: 0 6px 0 8px; color: var(--muted); white-space: nowrap; } /* 묶음 이름은 회색 칸 안 맨 앞(칸이 밀리지 않게) */
.qp-res-h { padding-left: 12px; } /* 표 첫 칸과 같은 시작선 */
/* 분석 내역: AI 분석 펼쳐 보기(2026-10-20) */
.an-ai { background: var(--bg); padding: 16px 20px !important; }
.an-ai .md { max-width: 980px; }
.an-pre { opacity: .75; } .an-pre .q-tool { font-size: 12px; }
/* 상품 상세(시안 02, 2026-10-20): 바코드·브랜드 한 줄 · 자료 보기 단추 · 같은 패널 미리보기 */
.c-sub { margin: -8px 0 0; }
.c-files { display: flex; flex-wrap: wrap; gap: 6px; }
.c-files .btn[disabled] { opacity: .45; }
.c-kv { padding: 12px 14px; }
.c-kv h3 { font-size: inherit; padding-bottom: 6px; }
.c-kv th, .c-kv td { padding: 8px 0; }
.c-ids { overflow-wrap: anywhere; }
.c-vbar { display: flex; align-items: center; gap: 8px; }
.c-vtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.c-vtabs .btn.on { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }
.c-view { background: var(--bg); border-radius: var(--radius); max-height: calc(100vh - 230px); overflow: auto; display: grid; place-items: start center; }
.c-view img { max-width: 100%; height: auto; display: block; }
/* 자료 보기(2026-10-21 Y♥ANA): 목업·패키지·라벨·카톤·상세페이지 모두 같은 크기 — 왼쪽 목록 칸 아래 끝까지, 화면 높이에 맞춰(반응형) */
.c-list { height: calc(100vh - 112px); max-height: none; }
.c-detail.viewing { height: calc(100vh - 112px); }
.c-detail.viewing .c-view { flex: 1; min-height: 0; max-height: none; }
.c-view.pz { position: relative; overflow: hidden; display: block; cursor: zoom-in; touch-action: none; user-select: none; }
.c-view.pz.zoomed { cursor: grab; } .c-view.pz.grab { cursor: grabbing; }
.c-pz { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform-origin: 0 0; }
.c-pz > img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.c-pz.seq { justify-content: flex-start; height: auto; } .c-pz.seq > img { max-height: none; }
.c-detail.viewing .c-view iframe { height: 100%; }
@media (max-width: 860px) { .c-list { height: auto; max-height: 40vh; } .c-detail.viewing { height: 70vh; } }
.c-view iframe { width: 100%; height: calc(100vh - 240px); border: 0; }
/* 상품 상세 2차(2026-10-20 Y♥ANA): 사진은 잘리지 않게 원래 비율로 · 스크롤하면 사진은 고정, 오른쪽 정보만 움직임 · 판매 상태는 제목 줄 오른쪽 */
.c-photo { aspect-ratio: auto; position: sticky; top: 12px; display: block; background: #fff; }
.c-photo img { width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; display: block; }
.c-badge.on { background: color-mix(in srgb, var(--ok, #2f9e64) 16%, transparent); color: var(--ok, #2f9e64); }
.c-badge.off { background: var(--line-2); color: var(--muted); }
.c-badge.soon { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
/* 상품 사진 칸: 모든 상품 같은 정사각형 흰 칸(서버가 여백을 잘라 정사각형으로 줌) — 검은 띠 없음(2026-10-20) */
.c-photo { aspect-ratio: 1 / 1; background: #fff; }
.c-photo img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.ad-same { max-height: 320px; overflow: auto; }
.w-2col.w-detail { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.w-2col.w-quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } /* 견적서: 입력과 미리보기 반반(2026-10-21 Y♥ANA — 왼쪽이 너무 넓음) */
@media (max-width: 1200px) { .w-2col.w-quote { grid-template-columns: 1fr; } }
.w-quote .w-preview.pdf { height: auto; aspect-ratio: 210 / 297; background: #fff; display: block; } .w-quote .w-preview .q-pv { height: 100%; } .w-quote .w-preview .c-pz { display: block; height: auto; } .w-quote .w-preview .c-pz > img { width: 100%; height: auto; max-width: none; max-height: none; } /* 미리보기 = A4 세로, 그림은 칸 폭 그대로(줄이지 않음 — 2026-10-21 Y♥ANA) */
.q-print { position: fixed; width: 0; height: 0; border: 0; left: -9999px; } /* 견적서 인쇄용 숨은 칸 */
input[type="date"] { color: inherit; font: inherit; color-scheme: light dark; padding-block: 8px; } /* 날짜 칸도 다른 입력 칸과 같은 모양(2026-10-20 Y♥ANA) */


/* 다크 모드: 위 팝업 바탕을 한 단계 밝게 */
html[data-theme="dark"] .modal ~ .modal { background: #3a3a37; border-color: #55534e; }
/* 상세페이지 직접 수정(미리보기 칸 안에서) */
.pe-stage { position: relative; width: 100%; } /* 스크롤은 바깥 미리보기 칸 하나만 */
.pe-scaler { position: relative; }
.w-preview .pe-iframe { position: absolute; left: 0; top: 0; width: 860px; height: auto; border: 0; transform-origin: 0 0; background: #fff; }
.pe-tool { position: absolute; z-index: 10; display: flex; gap: 4px; align-items: center; padding: 6px; background: var(--card); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.pe-tool select { width: 130px; } .pe-tool input[type=number] { width: 64px; } .pe-tool input[type=color] { width: 32px; height: 30px; padding: 2px; }
.pe-prev img { display: block; width: 100%; }

/* 팝업 안 입력칸: 주황 테두리 없이(2026-10-20 Y♥ANA) */
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--line-strong, var(--line)); box-shadow: none; }

/* 메뉴 옆 '작업중' 표시 */
.wh-wip { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--primary-weak); color: var(--primary); }

/* 분석: 기간 고르기 메뉴(오른쪽 단추) */
.an-menu { position: fixed; z-index: 70; display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; width: 250px; max-height: 320px; overflow: auto; padding: 8px; background: var(--card); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.an-menu .btn { justify-content: center; }
.an-menu.wide { grid-template-columns: 1fr; } /* 주: '1주차 (09/28~10/04)'처럼 길어서 한 줄에 하나 */
.an-menu .btn { white-space: nowrap; }
/* 분석: 예약 발송 단추는 '분석' 단추와 같은 높이의 정사각형 */
.an-mail { width: 44px; height: 41px; padding: 0; justify-content: center; align-self: center; }
.an-mail svg { width: 22px; height: 22px; }
/* 간편도구(D-091): 왼쪽 도구 목록은 상품 목록 카드(.c-item)와 같은 모양 */
.t-nav { max-height: none; }
.w-2col.t-wrap { align-items: stretch; } /* 좌우 칸 높이 맞춤(Y♥ANA) */
/* 오른쪽 작업 칸: 끌어다 놓기 칸이 남는 높이를 채우고 실행 단추는 맨 아래(Y♥ANA) */
.t-work { display: flex; flex-direction: column; }
.t-work .w-drop { flex: 1; min-height: 90px; flex-direction: column; text-align: center; }
.t-work .w-drop span { align-items: center; }
.t-work > .btn.block { margin-top: auto; }
.t-work .row input[type=number] { width: 120px; flex: none; } /* 숫자 칸은 짧게, % · px 글자는 바로 옆에 */
.t-work .row { align-items: center; flex-wrap: nowrap; }
.qp-seg .btn.sm:disabled { cursor: not-allowed; opacity: .6; } /* 나중에 붙일 플랫폼(잠금) */
.t-work .t-opts { flex-wrap: wrap; } /* 인라인 style은 CSP에 막혀서 클래스로 */
.pl-head { align-items: center; gap: 12px; }
.pl-head h3 { margin: 0; }
table.t.w-qt input.w-txt { width: 100%; min-width: 90px; } /* 견적서 직접 입력 품목(품명·규격) */
.an-last { display: flex; align-items: center; gap: 12px; } /* 기간 줄 + 오른쪽 메일 예약·분석 단추 */
.an-last > .ws-line { flex: 1; min-width: 0; }
.an-last > .ws-actions { padding-top: 0; flex-wrap: nowrap; }
.an-st { width: 200px; max-width: 220px; } .an-aic .q-tool { white-space: nowrap; } /* 상태 칸 좁게 · 펼치기 한 줄(2026-10-21) */
.an-files { flex-wrap: nowrap; white-space: nowrap; } /* 받기: PDF·엑셀 나란히(2026-10-21) */
.qp-form .an-fix { padding-top: 7px; } /* 고정 기간 글 — 왼쪽 이름과 같은 줄 높이(2026-10-21) */
