.theme-tag-manager { display: grid; gap: 16px; }
.theme-tag-manager-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.theme-tag-manager-head span { color: #a78c67; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.theme-tag-manager-head h4 { margin: 5px 0 0; color: #24342c; font-size: 17px; }
.theme-tag-manager-head p { max-width: 390px; margin: 0; color: #718078; font-size: 12px; line-height: 1.65; text-align: right; }
.theme-tag-groups { display: grid; gap: 10px; }
.theme-tag-group { overflow: hidden; border: 1px solid #dfe6e1; border-radius: 12px; background: #fbfcfb; }
.theme-tag-group > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid #e7ece8; background: #f5f8f6; }
.theme-tag-group > header div { display: grid; gap: 4px; }
.theme-tag-group > header strong { color: #2c4035; font-size: 14px; }
.theme-tag-group > header small { color: #829087; font-size: 11px; }
.theme-tag-add { min-height: 34px; padding: 7px 12px; border: 1px solid #a9bab0; border-radius: 7px; background: #fff; color: #345746; font-size: 12px; cursor: pointer; }
.theme-tag-add:hover { background: #edf4ef; }
.theme-tag-list { display: grid; gap: 0; padding: 0 16px; }
.theme-tag-row { display: grid; grid-template-columns: 32px minmax(240px,1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e9eeea; }
.theme-tag-row.is-expanded { align-items: start; padding: 13px 0; }
.theme-tag-row:last-child { border-bottom: 0; }
.theme-tag-order { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e9f0eb; color: #4d685a; font-size: 11px; font-weight: 700; }
.theme-tag-row input[type="text"] { min-height: 38px; padding: 8px 11px; border: 1px solid #d7e0da; border-radius: 7px; background: #fff; color: #304138; font-size: 13px; }
.theme-tag-fields { display: grid; gap: 9px; }
.theme-tag-fields label { display: grid; gap: 5px; }
.theme-tag-fields .theme-tag-prompt-field { display: none; }
.theme-tag-row.is-expanded .theme-tag-prompt-field { display: grid; }
.theme-tag-fields label > span { color: #6e7d74; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.theme-tag-fields textarea { width: 100%; min-height: 72px; resize: vertical; padding: 9px 11px; border: 1px solid #d7e0da; border-radius: 7px; background: #fff; color: #304138; font: inherit; font-size: 12px; line-height: 1.6; }
.theme-tag-fields input:focus,.theme-tag-fields textarea:focus { outline: 2px solid rgba(49,92,72,.16); border-color: #71917f; }
.theme-tag-switch { display: flex; align-items: center; gap: 7px; color: #64736b; font-size: 11px; white-space: nowrap; }
.theme-tag-switch input { width: 17px; height: 17px; accent-color: #315c48; }
.theme-tag-actions { display: flex; gap: 5px; }
.theme-tag-actions button { width: 31px; height: 31px; padding: 0; border: 1px solid #d8e0db; border-radius: 6px; background: #fff; color: #53665b; cursor: pointer; }
.theme-tag-actions .theme-tag-prompt-toggle { width: auto; min-width: 88px; padding: 0 10px; color: #315c48; font-size: 11px; font-weight: 700; }
.theme-tag-actions button:hover:not(:disabled) { border-color: #91a99a; background: #edf4ef; color: #244b38; }
.theme-tag-actions button[data-theme-tag-remove]:hover:not(:disabled) { border-color: #deb9b9; background: #fff4f4; color: #a24444; }
.theme-tag-actions button:disabled,
.theme-tag-add:disabled { cursor: not-allowed; opacity: .38; }
.theme-tag-row.is-disabled input[type="text"],.theme-tag-row.is-disabled textarea { background: #f3f4f3; color: #98a099; }
.theme-tag-row.is-disabled input[type="text"] { text-decoration: line-through; }

@media (max-width: 760px) {
  .theme-tag-manager-head { align-items: start; flex-direction: column; }
  .theme-tag-manager-head p { text-align: left; }
  .theme-tag-group > header { align-items: start; flex-direction: column; }
  .theme-tag-row { grid-template-columns: 32px minmax(0,1fr); }
  .theme-tag-switch { grid-column: 2; }
  .theme-tag-actions { grid-column: 2; }
  .theme-tag-fields { min-width: 0; }
  .theme-prompt-assembly > header { align-items: start; flex-direction: column; }
  .theme-prompt-assembly-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.business-card-preview{padding:14px 16px;background:#fffdf9;border-bottom:1px solid #e9e1d5}.business-card-preview p{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;font-size:14px;font-weight:600;color:#3f352b}.business-card-preview small{font-size:11px;color:#a18d73;font-weight:400}.business-card-preview>div{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}.business-card-preview span{max-width:100%;overflow-wrap:anywhere;border:1px solid #e1d4bd;border-radius:22px;padding:6px 11px;color:#746448;font-size:12px;background:#fff}.business-card-preview span:first-child{border-style:dashed}

.theme-prompt-assembly { display: grid; gap: 12px; padding: 16px; border: 1px solid #d8e3dc; border-radius: 12px; background: linear-gradient(135deg,#f7faf8,#fffdf9); }
.theme-prompt-assembly > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.theme-prompt-assembly > header span { color: #a27b48; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.theme-prompt-assembly h4 { margin: 4px 0 0; color: #24342c; font-size: 15px; }
.theme-prompt-assembly > header small { color: #7c8a82; font-size: 11px; }
.theme-prompt-assembly-controls { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)); gap: 8px; }
.theme-prompt-assembly-controls label { display: grid; gap: 5px; }
.theme-prompt-assembly-controls label > span { color: #718078; font-size: 10px; font-weight: 700; }
.theme-prompt-assembly-controls select { width: 100%; min-height: 36px; padding: 7px 28px 7px 10px; border: 1px solid #d6dfd9; border-radius: 7px; background: #fff; color: #304138; font-size: 12px; }
.theme-prompt-assembly-preview { overflow: auto; max-height: 210px; margin: 0; padding: 13px 14px; border: 1px solid #e0e6e2; border-radius: 8px; background: #23362d; color: #eaf1ed; font: 12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: pre-wrap; }

.skills-theme-tags { margin-top: 14px; padding: 18px; border: 1px solid #dfe6e1; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(38,58,47,.055); }
.skills-theme-tags .theme-tag-manager-head { padding-bottom: 13px; border-bottom: 1px solid #e7ece8; }
.skills-theme-tags .theme-tag-manager-head h3 { margin: 4px 0 0; color: #24342c; font-size: 18px; }
.skills-theme-tags-savebar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid #dce5df; border-radius: 12px; background: #f7faf8; }
.skills-theme-tags-savebar > div { display: flex; align-items: center; gap: 12px; }
.skills-theme-tags-savebar p { display: grid; gap: 3px; margin: 0; }
.skills-theme-tags-savebar strong { color: #2c4035; font-size: 12px; }
.skills-theme-tags-savebar strong.is-dirty { color: #9c642f; }
.skills-theme-tags-savebar small { color: #77857d; font-size: 11px; }
.skills-theme-tags-savebar small.error { color: #a24444; }

@media (max-width: 760px) {
  .skills-theme-tags { padding: 14px; }
  .skills-theme-tags-savebar { align-items: stretch; flex-direction: column; }
  .skills-theme-tags-savebar > div:last-child { display: grid; grid-template-columns: 1fr; }
  .theme-prompt-assembly > header { align-items: start; flex-direction: column; }
  .theme-prompt-assembly-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
