.pfg { max-width: 780px; }
.pfg-title { font-size: 20px; margin: 0 0 6px; color: #27331f; }
.pfg-desc { font-size: 13.5px; color: #5b6b56; margin: 0 0 16px; }
.pfg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pfg-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.pfg-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.pfg-panel { display: flex; flex-direction: column; gap: 12px; }
.pfg-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.pfg-panel input, .pfg-panel select, .pfg-panel textarea {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; font-family: inherit;
}
.pfg-panel input:focus, .pfg-panel select:focus, .pfg-panel textarea:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.pfg-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pfg-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.pfg-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }
.pfg-subnote { font-size: 12px; color: #5b6b56; margin: 6px 0 0; font-style: italic; }
.pfg-h3 { font-size: 15px; font-weight: 700; color: #27331f; margin: 6px 0 0; }

/* Output command block */
.pfg-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pfg-cmd {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.pfg-cmd code { font-family: ui-monospace, monospace; font-size: 13px; color: #19616a; font-weight: 700; word-break: break-all; }
.pfg-cmd span { font-size: 12.5px; color: #5b6b56; }
.pfg-copied { color: #19616a !important; font-weight: 700; }

/* ---------- Decorated Pot Designer ---------- */
.pfg-pot-layout { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pfg-pot-controls { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.pfg-pot-preview-wrap { flex: 0 0 220px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.pfg-pot {
  width: 180px; height: 200px; position: relative; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 3px; background: #4a3826; border-radius: 10px 10px 22px 22px;
  padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pfg-pot-face {
  background: #b06b3a; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45);
  border-radius: 3px; padding: 4px; overflow: hidden; word-break: break-word; line-height: 1.25;
}
.pfg-pot-face-front { grid-column: 1; grid-row: 2; }
.pfg-pot-face-back { grid-column: 2; grid-row: 1; opacity: .78; }
.pfg-pot-face-left { grid-column: 1; grid-row: 1; opacity: .88; }
.pfg-pot-face-right { grid-column: 2; grid-row: 2; opacity: .88; }
.pfg-pot-face-plain {
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 6px, transparent 6px 12px);
}
.pfg-pot-labels { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #5b6b56; text-align: center; }

.pfg-sherd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pfg-sherd-card {
  border: 1px solid #d9e0d4; border-radius: 6px; padding: 10px; background: #fff; display: flex;
  flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.pfg-sherd-icon {
  width: 100%; height: 54px; border-radius: 4px; background: #b06b3a; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 11px; text-shadow: 0 1px 1px rgba(0,0,0,.45);
}
.pfg-sherd-name { font-size: 12px; font-weight: 700; color: #27331f; }
.pfg-sherd-id { font-size: 11px; color: #5b6b56; font-family: ui-monospace, monospace; }

/* ---------- Tables / search (shared with Flag Banners cards) ---------- */
.pfg-search {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; width: 100%; max-width: 320px;
}
.pfg-table-wrap { overflow-x: auto; border: 1px solid #d9e0d4; border-radius: 6px; }
table.pfg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.pfg-table th {
  text-align: left; background: #f3f4f8; color: #27331f; font-weight: 700; padding: 9px 11px;
  border-bottom: 1px solid #d9e0d4; position: sticky; top: 0;
}
table.pfg-table td { padding: 8px 11px; border-bottom: 1px solid #eef0e9; color: #27331f; vertical-align: top; }
table.pfg-table tr:last-child td { border-bottom: none; }
table.pfg-table tr:hover td { background: #fafbf7; }
table.pfg-table code { font-family: ui-monospace, monospace; font-size: 12.5px; color: #19616a; }

/* ---------- Flag Banners ---------- */
.pfg-flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pfg-flag-card { border: 1px solid #d9e0d4; border-radius: 6px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.pfg-flag-card h4 { margin: 0; font-size: 14px; color: #27331f; }
.pfg-flag-card ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: #5b6b56; }
.pfg-flag-card ul code { color: #19616a; }
.pfg-flag-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #d9e0d4; vertical-align: -2px; margin-right: 5px; }

@media (max-width: 640px) {
  .pfg-row2 { grid-template-columns: 1fr; }
  .pfg-pot-layout { flex-direction: column; align-items: stretch; }
  .pfg-pot-preview-wrap { align-self: center; }
}
