/* player-head-username-tools-9mc.css — tren skins.9minecraft.net.
 * ⛔ CSS goc dung MAU HEX CUNG (teal #19616a, light-only). Viet lai theo TOKEN + scope `.phut9`
 *    + theme-aware (co dark mode) + doi accent sang grass cho DONG BO voi 4 tool da chuyen. */
.phut9 {
  --surface:#ffffff; --surface-2:#f0f4f1;
  --line:rgba(6,78,59,.14);
  --fg:#0b1410; --fg-muted:#4a5a51;
  --grass:#059669; --bad:#d14343;
  color: var(--fg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phut9 {
    --surface:#1b212b; --surface-2:#242b36; --line:rgba(255,255,255,.12);
    --fg:#e8eaed; --fg-muted:#9aa0a6; --grass:#34d399; --bad:#ff8f8f;
  }
}
:root[data-theme="dark"] .phut9 {
  --surface:#1b212b; --surface-2:#242b36; --line:rgba(255,255,255,.12);
  --fg:#e8eaed; --fg-muted:#9aa0a6; --grass:#34d399; --bad:#ff8f8f;
}

.phut9 .phut { max-width: 720px; }

/* ---- tabs ---- */
.phut9 .phut-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.phut9 .phut-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); cursor: pointer; color: var(--fg);
}
.phut9 .phut-tab:focus { outline: 2px solid var(--grass); outline-offset: 1px; }
.phut9 .phut-tab-active { background: var(--grass); border-color: var(--grass); color: #fff; }

/* ---- shared panel form controls ---- */
.phut9 .phut-panel { display: flex; flex-direction: column; gap: 12px; }
.phut9 .phut-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--fg); }
.phut9 .phut-panel input, .phut9 .phut-panel select {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg);
}
.phut9 .phut-panel input:focus, .phut9 .phut-panel select:focus { outline: 2px solid var(--grass); outline-offset: 1px; }

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

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

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

.phut9 .phut-subhead {
  font-size: 12.5px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .02em; margin-top: 4px;
}

.phut9 .phut-hint { font-size: 12.5px; color: var(--fg-muted); margin: 4px 0 0; }
.phut9 .phut-note { margin-top: 16px; font-size: 13px; color: var(--fg-muted); }
.phut9 .phut-warn {
  font-size: 12.5px; color: var(--fg); margin: 4px 0 0; padding: 8px 12px;
  background: color-mix(in srgb, var(--grass) 7%, var(--surface)); border: 1px solid var(--line); border-radius: 8px;
}

/* ---- output box ---- */
.phut9 .phut-output {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin-bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}
.phut9 .phut-output-top { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.phut9 .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: var(--grass); line-height: 1.5;
}
.phut9 .phut-output-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phut9 .phut-output-hint { font-size: 12.5px; color: var(--fg-muted); margin: 0; }

.phut9 .phut-btn {
  padding: 8px 14px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--fg); cursor: pointer; white-space: nowrap;
}
.phut9 .phut-btn:focus { outline: 2px solid var(--grass); outline-offset: 1px; }
.phut9 .phut-btn-primary { background: var(--grass); border-color: var(--grass); color: #fff; }

.phut9 .phut-toggle-row { display: flex; align-items: center; gap: 8px; }

/* ---- head icon ideas browser ---- */
.phut9 .phut-search input {
  width: 100%; padding: 9px 11px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg);
}
.phut9 .phut-search input:focus { outline: 2px solid var(--grass); outline-offset: 1px; }

.phut9 .phut-cat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.phut9 .phut-cat-btn {
  padding: 6px 11px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--fg); cursor: pointer;
}
.phut9 .phut-cat-btn:hover { border-color: var(--grass); }
.phut9 .phut-cat-btn-active { background: var(--grass); border-color: var(--grass); color: #fff; }

.phut9 .phut-idea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.phut9 .phut-idea-card { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.phut9 .phut-idea-name { font-size: 14px; font-weight: 700; color: var(--fg); margin: 0 0 2px; }
.phut9 .phut-idea-cat {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--grass); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px;
}
.phut9 .phut-idea-desc { font-size: 12.5px; color: var(--fg-muted); margin: 0; }
.phut9 .phut-idea-empty { font-size: 13px; color: var(--fg-muted); padding: 12px 0; }

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

.phut9 .phut-uuid-box {
  margin-top: 18px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.phut9 .phut-uuid-result { display: flex; flex-direction: column; gap: 8px; }
.phut9 .phut-uuid-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phut9 .phut-uuid-line-label { font-size: 12px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .02em; min-width: 74px; }
.phut9 .phut-uuid-line code { font-family: ui-monospace, monospace; font-size: 13.5px; color: var(--grass); word-break: break-all; flex: 1 1 auto; }
.phut9 .phut-uuid-status { font-size: 12.5px; margin: 0; }
.phut9 .phut-uuid-status-ok { color: var(--grass); }
.phut9 .phut-uuid-status-bad { color: var(--bad); }

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

/* Fix desktop clipping of .phut-output (max-height:0px override) */
#tool-root .n9p .phut-output, .phut9 .phut-output { max-height: none !important; height: auto !important; overflow: visible !important; }
