/* 「ほかの単語帳に書き出す」パネル（えいたんカード・単語リスト変換で共通） */
.xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.xp-title {
  margin: 0;
  font-family: 'Baloo 2','Zen Maru Gothic',sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.xp-head .xp-seg { margin-left: auto; }
.xp label { display: block; margin: 0; cursor: pointer; }
.xp-seg, .xp-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #e8dcc8;
}
.xp-seg input, .xp-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.xp-seg span, .xp-tabs span {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #7a6f5c;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.xp-seg input:checked + span,
.xp-tabs input:checked + span {
  background: #fffcf7;
  color: #20281f;
  box-shadow: 0 2px 6px -2px rgba(32,40,31,.3);
}
.xp-seg input:focus-visible + span,
.xp-tabs input:focus-visible + span { outline: 2px solid #ff7a1a; }
.xp-tabs { display: flex; }
.xp-tabs label { flex: 1; text-align: center; }
.xp-tabs span { padding: 8px 4px; font-size: 13px; }
.xp-howto {
  margin: 10px 2px 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7a6f5c;
}
.xp-out {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  max-height: 150px;
  overflow: auto;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: #f6efe3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #5a5347;
  white-space: pre;
  tab-size: 4;
  box-sizing: border-box;
}
textarea.xp-out {
  min-height: 180px;
  max-height: none;
  resize: vertical;
  outline: none;
  font-size: 13px;
}
textarea.xp-out:focus { border-color: #4c7a5e; }
textarea.xp-out::placeholder { color: #a79c88; font-family: 'Inter','Zen Maru Gothic',sans-serif; }
.xp-actions { display: flex; gap: 8px; margin-top: 12px; }
.xp-btn {
  flex: 1;
  padding: 11px 12px;
  border-radius: 999px;
  border: 1.5px solid #e8dcc8;
  background: #fffcf7;
  color: #365a44;
  font-family: 'Inter','Zen Maru Gothic',sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.xp-btn:hover { border-color: #4c7a5e; }
.xp-btn-main { background: #4c7a5e; border-color: #4c7a5e; color: #fff; }
.xp-btn-main:hover { background: #365a44; }
.xp-btn.done { background: #e4ecdf; border-color: #c3d7bb; color: #365a44; }
.xp-btn:disabled { opacity: .45; cursor: not-allowed; }
.xp-editable .xp-btn { padding: 14px 12px; font-size: 15px; }
