.experience-guide .card-head { gap: 16px; }
.experience-guide .composer-box { align-items: center; }
.experience-guide .coach p { max-width: 480px; }
.experience-guide .guide-progress { padding: 0 28px 16px; display: flex; gap: 5px; }
.guide-progress span { height: 4px; flex: 1; border-radius: 10px; background: var(--grey-100); }
.guide-progress span.done { background: var(--accent); }
.guide-progress span.current { background: #f8bd96; }
.experience-guide .chat-log { height: 340px; min-height: 220px; }
.experience-guide .guide-question { display: block; margin-top: 8px; color: var(--faint); font-size: 14px; }
.guide-answer { display: flex; max-width: 78%; align-items: flex-end; gap: 8px; }
.guide-answer .msg { max-width: 100%; }
.guide-answer-edit { border: 0; background: transparent; color: var(--faint); font-size: 12px; padding: 8px 0; cursor: pointer; flex-shrink: 0; }
.guide-answer-edit:hover { color: var(--accent-ink); }
.guide-answer .guide-skipped { background: var(--grey-100); color: var(--faint); }
.guide-composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.guide-composer-actions .hint { margin: 0; font-size: 12px; }
.guide-saved-note { font-size: 12px; color: var(--faint); }
.guide-review-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px 0; }
.guide-review-head img { width: 62px; height: 62px; object-fit: contain; }
.guide-review-head h2 { margin: 0 0 4px; }
.guide-review-head p { margin: 0; font-size: 14px; color: var(--faint); }
.experience-editor { padding: 24px 28px; display: grid; gap: 18px; }
.experience-editor .field { display: grid; gap: 8px; }
.experience-editor label { font-size: 14px; font-weight: 600; }
.experience-editor .input { width: 100%; }
.experience-editor .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-review-actions { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.exp-card .exp-tools { display: flex; gap: 6px; align-items: center; }
.exp-card .star { grid-template-columns: 68px 1fr; }
.exp-card .star dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.exp-card .exp-polish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.exp-card .exp-polish-actions .hint { font-size: 12px; margin: 0; }
.exp-polished { margin-top: 20px; background: var(--grey-50, #fafafa); padding: 16px 18px; border-radius: 14px; }
.exp-polished h4 { font-size: 14px; margin: 0 0 10px; }
.exp-polished p { margin: 0; white-space: pre-wrap; line-height: 1.7; font-size: 15px; }
.experience-history { margin-top: 16px; }
.experience-history summary { padding: 18px 22px; font-size: 14px; color: var(--faint); cursor: pointer; }
.experience-history .history-actions { padding: 0 24px 20px; }
.experience-dialog { width: min(720px, calc(100vw - 32px)); max-height: 88vh; overflow-y: auto; }
.experience-dialog .experience-editor { padding: 8px 0 20px; }
.experience-dialog .dialog-actions { position: sticky; bottom: 0; background: var(--surface, #fff); padding-top: 16px; }
@media (max-width: 600px) {
  .experience-guide.chat .card-head { flex-direction: row; align-items: flex-start; gap: 8px; padding: 18px 16px 10px; }
  .experience-guide .card-head > .btn { flex: none; padding: 0 10px; }
  .experience-guide .card-head .coach { gap: 8px; min-width: 0; }
  .experience-guide .coach h2 { font-size: 15px; line-height: 1.4; }
  .experience-guide .coach-face { width: 40px; height: 40px; }
  .experience-guide .coach-face img { width: 42px; height: 42px; }
  .experience-guide .coach p { font-size: 12px; line-height: 1.5; }
  .experience-guide .guide-progress { padding: 0 16px 10px; }
  .experience-guide .chat-log { height: 210px; min-height: 0; padding: 10px 16px 16px; }
  .experience-guide .composer { padding: 12px 14px 16px; }
  .guide-answer { max-width: 88%; }
  .experience-guide .msg { max-width: 86%; font-size: 15px; }
  .guide-answer .msg { max-width: 100%; }
  .guide-review-head { padding: 20px 20px 0; }
  .experience-editor { padding: 20px; }
  .experience-editor .field-pair { grid-template-columns: 1fr; }
  .guide-review-actions { padding: 18px 20px; }
  .exp-card .exp-polish-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .experience-guide *, .experience-history * { scroll-behavior: auto !important; }
}

/* Save a card under several keywords, then browse the same keywords in the collection. */
.experience-keyword-editor { min-width: 0; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfd; }
.experience-keyword-editor legend { padding: 0 6px; font-size: 14px; font-weight: 650; }
.experience-keyword-editor legend span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.keyword-options, .experience-keyword-filters, .experience-card-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.keyword-options { margin: 0 0 14px; }
.exp-keyword, .exp-keyword-filter { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; line-height: 1.45; padding: 8px 12px; max-width: 100%; overflow-wrap: anywhere; cursor: pointer; transition: background .15s, border-color .15s; }
.exp-keyword svg { flex-shrink: 0; }
.exp-keyword:hover, .exp-keyword-filter:hover { border-color: var(--accent); }
.exp-keyword.on, .exp-keyword-filter.on { border-color: #f6c5ac; background: var(--accent-weak); color: #b44917; }
.exp-keyword:focus-visible, .exp-keyword-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.experience-keyword-editor .hint { margin: 8px 0 0; font-size: 12px; }
.experience-keyword-filters { margin-top: 20px; }
.exp-keyword-filter { font-size: 14px; padding: 9px 14px; }
.exp-keyword-filter span { font-size: 12px; opacity: .7; }
.keyword-result-count { margin: 14px 0; color: var(--muted); font-size: 13px; }
.experience-card-keywords { margin-bottom: 18px; }
.card-keyword { background: var(--accent-weak); color: #b44917; border-color: transparent; padding: 5px 10px; font-size: 12px; }
.keyword-untagged { color: var(--faint); font-size: 12px; }
#expCards { scroll-margin-top: 24px; }
@media (max-width: 600px) {
  .experience-keyword-editor { padding: 14px 12px; }
  .experience-keyword-editor legend span { display: block; margin-left: 0; }
  .keyword-options, .experience-keyword-filters { gap: 6px; }
  .exp-keyword, .exp-keyword-filter { min-height: 36px; padding: 7px 11px; }
  #expCards { scroll-margin-top: 130px; }
}
.experience-keyword-editor .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 모키와 정리하기가 먼저, 이미 정리해 둔 글은 아래에서 붙여넣는다 */
.paste-card { margin-top: 12px; padding: 26px 28px 20px; }
.paste-head h2 { margin: 0; font-size: 19px; }
.paste-head p { margin: 6px 0 16px; font-size: 14px; color: var(--muted); }
.paste-card textarea { width: 100%; min-height: 120px; padding: 16px 18px; font-size: 15px; line-height: 1.75; resize: vertical; }
.paste-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.paste-foot .hint { margin: 0; font-size: 13px; line-height: 1.6; }
.paste-foot .btn { flex: none; }
.paste-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.paste-tip .text-btn { font-size: 13px; }
.paste-card .sr-only, .prep-page .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .paste-card { padding: 22px 20px 18px; }
  .paste-foot { flex-direction: column; align-items: stretch; }
}

/* 붙여넣기: 입력 전에 어떻게 저장되는지 두 갈래로 먼저 보여 준다 */
.paste-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 14px 0 12px; }
.paste-mode { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--grey-50); }
.paste-mode b { font-size: 14px; }
.paste-mode span { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.paste-mode .text-btn { font-size: 13px; }
