/* AI 팀 업무(2026-11-13) — 업무 고르기 · 입력 · 진행판 · 결과 · 공용 기억 · 대화 이어 쓰기. 애플식 덜어내기: 단색 면 · 얇은 선 · 강조색 하나 */
.ms { --ms-claude: #d97757; --ms-gpt: #10a37f; --ms-gemini: #4c8dff; --ms-grok: #9b7bff;
  max-width: 980px; margin: 0 auto; padding: 40px 24px 96px; word-break: keep-all; }
.ms-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.ms-back:hover { color: var(--text); }
.ms-head { margin: 8px 0 32px; }
.ms-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.ms-head h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 10px; font-weight: 700; }
.ms-head p { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 680px; }

/* 업무 카드 3장 */
.ms-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ms-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  color: inherit; text-decoration: none; min-height: 250px; transition: border-color .15s; }
.ms-card:hover, .ms-card:focus-visible { border-color: var(--brand); outline: none; }
.ms-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.ms-card b { font-size: 20px; letter-spacing: -.01em; margin-top: 6px; }
.ms-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.ms-card small { margin-top: auto; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ms-card .ms-go { font-size: 15px; font-weight: 600; color: var(--brand); }
.ms-past { margin-top: 28px; }
.ms-past > summary { cursor: pointer; font-size: 15px; color: var(--muted); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.ms-past > summary::-webkit-details-marker { display: none; }
.ms-past > summary::after { content: "›"; transition: transform .15s; }
.ms-past[open] > summary::after { transform: rotate(90deg); }
.ms-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ms-list li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ms-list li a:hover b { color: var(--brand); }
.ms-list b { font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-list small { color: var(--muted); font-size: 13px; }
.ms-list .ms-st { font-size: 13px; color: var(--muted); grid-row: span 2; align-self: center; }

/* 입력 */
.ms-form { display: flex; flex-direction: column; gap: 22px; }
.ms-f label, .ms-lb { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ms-f textarea, .ms-f input[type=text], .ms-f input[type=time], .ms-f input[type=url], .ms-f select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; line-height: 1.6; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.ms-f textarea { min-height: 132px; resize: vertical; }
.ms-f textarea:focus, .ms-f input:focus, .ms-f select:focus { outline: none; border-color: var(--brand); }
.ms-f .ms-hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.ms-ex { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 14px; color: var(--muted); align-items: baseline; }
.ms-ex button { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--text-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ms-ex button:hover, .ms-ex button.on { color: var(--brand); text-decoration-color: currentColor; }
.ms-row2 { display: grid; grid-template-columns: 1fr 1fr 180px; gap: 16px; }
.ms-who { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-more { border-top: 1px solid var(--line); padding-top: 14px; }
.ms-more > summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.ms-more > summary::-webkit-details-marker { display: none; }
.ms-more > summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 500; color: var(--muted); }
.ms-more[open] > summary::before { content: "−"; }
.ms-more > summary small { font-weight: 400; color: var(--muted); }
.ms-more-b { display: flex; flex-direction: column; gap: 20px; padding: 18px 0 4px; }
.ms-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pick label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 500; margin: 0; }
.ms-pick label:has(input:checked) { border-color: var(--brand); }
.ms-pick label small { color: var(--muted); font-weight: 400; }
.ms-pick input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.ms-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ms .btn.lg { min-height: 52px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.ms-act .ms-err { color: var(--bad); font-size: 14px; }

/* AI 표식 */
.ms-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans, inherit); color: #fff; flex: none; background: #55555c; }
.ms-av.claude { background: var(--ms-claude); } .ms-av.chatgpt { background: var(--ms-gpt); } .ms-av.gemini { background: var(--ms-gemini); } .ms-av.grok { background: var(--ms-grok); }
.ms-av.sm { width: 24px; height: 24px; font-size: 10px; }

/* 진행판 */
.ms-now { font-size: 15px; color: var(--text-2); margin: 0 0 14px; }
.ms-now b { color: var(--text); }
.ms-board { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.ms-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ms-r:last-child { border-bottom: 0; }
.ms-r-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-r-t b { font-size: 16px; }
.ms-r-t small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ms-r-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ms-state { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ms-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ms-state.working::before { background: var(--warn, #e0a33a); }
.ms-state.done { color: var(--ok); } .ms-state.done::before { background: var(--ok); }
.ms-r.synth { background: var(--bg-2); }
.ms-r.dim { opacity: .55; }
.ms-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 12px 2px 0; }

/* 결과 */
.ms-concl { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--panel); }
.ms-concl .ms-k { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ms-concl p.ms-big { font-size: 22px; line-height: 1.5; font-weight: 650; letter-spacing: -.01em; margin: 10px 0 0; }
.ms-conf { font-weight: 600; color: var(--text-2); }
.ms-warn { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.ms-sec { margin-top: 36px; }
.ms-sec h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.01em; }
.ms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ms-two > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.ms-two h3 { font-size: 15px; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.ms-ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.7; }
.ms-cmp { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ms-cmp > details { border-bottom: 1px solid var(--line); }
.ms-cmp > details:last-child { border-bottom: 0; }
.ms-cmp summary { display: grid; grid-template-columns: auto 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.ms-cmp summary::-webkit-details-marker { display: none; }
.ms-cmp summary b { font-size: 15px; }
.ms-cmp summary span { font-size: 16px; line-height: 1.5; }
.ms-cmp summary em { font-style: normal; font-size: 13px; color: var(--brand); white-space: nowrap; }
.ms-cmp details[open] summary em { color: var(--muted); }
.ms-raw { padding: 4px 20px 18px 68px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.ms-raw .md-body, .ms-raw > div { font-size: 15px; }
.ms-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ms-links a { color: var(--brand); text-decoration: none; font-size: 15px; word-break: break-all; }
.ms-links a:hover { text-decoration: underline; }
.ms-fold { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.ms-fold > summary { cursor: pointer; font-size: 15px; color: var(--muted); }
.ms-fold > div { padding-top: 14px; }

/* 브리핑 */
.ms-days { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.ms-days button { border: 1px solid var(--line-2); background: none; color: var(--text-2); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ms-days button.on { border-color: var(--brand); color: var(--text); font-weight: 600; }
.ms-todo { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: t; display: flex; flex-direction: column; gap: 10px; }
.ms-todo li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 18px; line-height: 1.5; font-weight: 600; }
.ms-todo li::before { content: counter(t); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.ms-src { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.ms-src:first-of-type { border-top: 0; }
.ms-src-h { display: flex; gap: 10px; align-items: flex-start; }
.ms-src-h b { font-size: 15px; display: block; }
.ms-src-h small { font-size: 13px; color: var(--muted); }
.ms-src-b > p { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.ms-src-b .ms-md { font-size: 15px; line-height: 1.7; color: var(--text-2); }

/* 대화 이어 쓰기 · 공용 기억 */
.ms-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; margin-bottom: 28px; }
.ms-tabs a { padding: 8px 18px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.ms-tabs a.on { background: var(--panel-2); color: var(--text); }
.ms-conv { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.ms-conv + .ms-conv { margin-top: 12px; }
.ms-conv-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ms-conv-h b { font-size: 18px; }
.ms-conv-h small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ms-conv p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.ms-conv .ms-todo-t { font-size: 14px; color: var(--muted); }
.ms-conv .ms-r-a { justify-content: flex-start; margin-top: 4px; }
.ms-setup { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.ms-setup h2 { font-size: 18px; margin: 0 0 6px; }
.ms-setup > p { margin: 0 0 14px; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.ms-quote { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }
.ms-where { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.ms-where b { color: var(--text); font-weight: 600; }
.ms-empty { padding: 28px 0 8px; font-size: 16px; color: var(--muted); }
.ms-mem-add { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.ms-mem-add .btn { min-height: 56px; }
.ms-mem { margin-top: 26px; }
.ms-mem h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 20px 0 6px; }
.ms-mem ul { margin: 0; padding: 0; list-style: none; }
.ms-mem li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.ms-mem li small { color: var(--muted); font-size: 13px; margin-left: 6px; }
.ms-x { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.ms-x:hover { color: var(--bad); background: var(--bg-2); }
.ms-pend { border: 1px solid var(--brand); border-radius: 16px; padding: 16px 20px; margin-bottom: 22px; }
.ms-pend h2 { font-size: 16px; margin: 0 0 4px; }
.ms-pend li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.ms-pend ul { list-style: none; margin: 8px 0 0; padding: 0; }

/* 캡처 점검 후 다듬기 */
.ms-card b { color: var(--text); }
.ms-r-t b { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.ms-r-t b .ms-state { font-weight: 400; }
.ms-nm { display: none; }
.ms-head.long h1 { font-size: 26px; }

@media (max-width: 900px) {
  .ms-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .ms-card .ms-ic { grid-row: span 3; }
  .ms-card b { margin-top: 0; font-size: 18px; }
  .ms-card .ms-go { display: none; }
  .ms-card small { margin-top: 2px; font-size: 13px; }
  .ms-nm { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
  .ms-head.long h1 { font-size: 22px; }
  .ms-conv-h { flex-direction: column; gap: 2px; }
  .ms { padding: 24px 18px 80px; }
  .ms-head { margin-bottom: 24px; }
  .ms-head h1 { font-size: 28px; }
  .ms-head p { font-size: 16px; }
  .ms-cards { grid-template-columns: 1fr; gap: 12px; }
  .ms-card { min-height: 0; padding: 20px; }
  .ms-row2 { grid-template-columns: 1fr; }
  .ms-r { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .ms-r-a { grid-column: 1 / -1; justify-content: flex-start; }
  .ms-r-a .btn { flex: 1; justify-content: center; }
  .ms-two { grid-template-columns: 1fr; }
  .ms-cmp summary { grid-template-columns: auto minmax(0, 1fr); }
  .ms-cmp summary b { display: none; }
  .ms-cmp summary em { grid-column: 2; }
  .ms-raw { padding: 4px 16px 16px; }
  .ms-src { grid-template-columns: 1fr; gap: 10px; }
  .ms-concl { padding: 22px; }
  .ms-concl p.ms-big { font-size: 19px; }
  .ms-mem-add { grid-template-columns: 1fr; }
  .ms-act .btn.lg { width: 100%; justify-content: center; }
}
