.phut { max-width: 720px; }

.phut-title { margin: 0 0 6px; font-size: 20px; color: #27331f; }
.phut-desc { margin: 0 0 16px; font-size: 14px; color: #5b6b56; }

/* ---- tabs ---- */
.phut-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.phut-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.phut-tab:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.phut-tab-active { background: #19616a; border-color: #19616a; color: #fff; }

/* ---- shared panel form controls ---- */
.phut-panel { display: flex; flex-direction: column; gap: 12px; }
.phut-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.phut-panel input, .phut-panel select {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff; color: #27331f;
}
.phut-panel input:focus, .phut-panel select:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.phut-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phut-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.phut-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 700; }
.phut-check input[type="checkbox"], .phut-check input[type="radio"] { width: auto; padding: 0; }

.phut-mode-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 2px 0 2px; }

.phut-subhead {
  font-size: 12.5px; font-weight: 700; color: #5b6b56; text-transform: uppercase; letter-spacing: .02em;
  margin-top: 4px;
}

.phut-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.phut-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }
.phut-warn {
  font-size: 12.5px; color: #27331f; margin: 4px 0 0; padding: 8px 10px;
  background: #fff; border: 1px solid #d9e0d4; border-left: 3px solid #19616a; border-radius: 4px;
}

/* ---- output box (give-command tab) ---- */
.phut-output {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; margin-bottom: 16px;
  background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 8px;
}
.phut-output-top { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.phut-output-cmd {
  flex: 1 1 320px; min-width: 0; word-break: break-all;
  font-family: ui-monospace, monospace; font-size: 14.5px; font-weight: 700; color: #19616a;
  line-height: 1.5;
}
.phut-output-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phut-output-hint { font-size: 12.5px; color: #5b6b56; margin: 0; }

.phut-btn {
  padding: 8px 14px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #27331f; cursor: pointer; white-space: nowrap;
}
.phut-btn:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.phut-btn-primary { background: #19616a; border-color: #19616a; color: #fff; }

/* ---- toggle switch (fixed skin URL) ---- */
.phut-toggle-row { display: flex; align-items: center; gap: 8px; }

/* ---- head icon ideas browser ---- */
.phut-search input {
  width: 100%; padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff; color: #27331f;
}
.phut-search input:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.phut-cat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.phut-cat-btn {
  padding: 6px 11px; font-size: 12.5px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #27331f; cursor: pointer;
}
.phut-cat-btn:hover { border-color: #19616a; }
.phut-cat-btn-active { background: #19616a; border-color: #19616a; color: #fff; }

.phut-idea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.phut-idea-card {
  padding: 10px 12px; background: #fff; border: 1px solid #d9e0d4; border-radius: 6px;
}
.phut-idea-name { font-size: 14px; font-weight: 700; color: #27331f; margin: 0 0 2px; }
.phut-idea-cat {
  display: inline-block; font-size: 11px; font-weight: 700; color: #19616a; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 4px;
}
.phut-idea-desc { font-size: 12.5px; color: #5b6b56; margin: 0; }
.phut-idea-empty { font-size: 13px; color: #5b6b56; padding: 12px 0; }

/* ---- UUID reference tab ---- */
.phut-prose { font-size: 14px; color: #27331f; line-height: 1.6; }
.phut-prose p { margin: 0 0 12px; }
.phut-prose h3 { font-size: 15px; margin: 18px 0 6px; color: #27331f; }
.phut-prose h3:first-child { margin-top: 0; }
.phut-prose code {
  font-family: ui-monospace, monospace; font-size: 13px; background: #f3f4f8; padding: 1px 5px; border-radius: 4px;
}

.phut-uuid-box {
  margin-top: 18px; padding: 14px 16px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.phut-uuid-result { display: flex; flex-direction: column; gap: 8px; }
.phut-uuid-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phut-uuid-line-label { font-size: 12px; font-weight: 700; color: #5b6b56; text-transform: uppercase; letter-spacing: .02em; min-width: 74px; }
.phut-uuid-line code {
  font-family: ui-monospace, monospace; font-size: 13.5px; color: #19616a; word-break: break-all; flex: 1 1 auto;
}
.phut-uuid-status { font-size: 12.5px; margin: 0; }
.phut-uuid-status-ok { color: #19616a; }
.phut-uuid-status-bad { color: #a33; }

@media (max-width: 480px) {
  .phut-row2, .phut-row3 { grid-template-columns: 1fr; }
  .phut-output-top { flex-direction: column; align-items: stretch; }
  .phut-idea-grid { grid-template-columns: 1fr; }
  .phut-uuid-line-label { min-width: 0; }
}
