:root {
  --pf-primary: var(--tf-accent, #7c5312);
  --pf-primary-hover: var(--tf-accent-hover, #64420e);
  --pf-bg-card: #ffffff;
  --pf-border: var(--tf-rule, #e5e0d8);
  --pf-text-main: var(--tf-ink, #12100e);
  --pf-text-muted: var(--tf-muted, #5c5549);
  --pf-pill-bg: var(--tf-surface, #faf9f7);
  --pf-pill-hover: var(--tf-rule, #e5e0d8);
  --pf-result-bg: var(--tf-surface, #faf9f7);
  --pf-hl-bg: var(--tf-accent-wash, rgba(124, 83, 18, 0.08));
  --pf-hl-border: var(--tf-accent-soft, rgba(124, 83, 18, 0.2));
  --pf-hl-text: var(--tf-accent, #7c5312);
}

.pf-tool-container {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-family: inherit;
  color: var(--pf-text-main);
}

.pf-editor-card {
  background: var(--pf-bg-card);
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.pf-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pf-border);
}

.pf-presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pf-text-muted);
}

.pf-pill-btn {
  background: var(--pf-pill-bg);
  border: 1px solid var(--pf-border);
  color: var(--pf-text-main);
  border-radius: 2px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pf-pill-btn:hover {
  background: var(--pf-pill-hover);
  border-color: var(--pf-primary);
}

.pf-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 680px) {
  .pf-grid-3 {
    grid-template-columns: 1fr;
  }
}

.pf-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--pf-text-main);
}

.pf-cur-sym {
  font-weight: inherit;
}

.pf-req {
  color: #dc2626;
}

.pf-field input,
.pf-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  background: var(--pf-bg-card);
  color: var(--pf-text-main);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.pf-field input:focus,
.pf-field select:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: none;
}

.pf-action-row {
  display: flex;
  gap: 0.75rem;
}

.pf-primary-btn {
  flex: 2;
  background: var(--pf-primary);
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pf-primary-btn:hover {
  background: var(--pf-primary-hover);
}

.pf-secondary-btn {
  background: var(--pf-pill-bg);
  color: var(--pf-text-main);
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pf-results-card {
  background: var(--pf-result-bg);
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  padding: 1.75rem;
}

.pf-highlight-box {
  background: var(--pf-hl-bg);
  border: 1px solid var(--pf-hl-border);
  border-radius: 2px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pf-hl-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pf-hl-text);
  margin-bottom: 0.25rem;
  display: block;
}

.pf-hl-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--pf-hl-text);
  margin-bottom: 0.25rem;
}

.pf-hl-sub {
  font-size: 0.9rem;
  color: var(--pf-hl-text);
}

.pf-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .pf-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pf-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pf-gateway-card {
  background: var(--pf-bg-card);
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.pf-card-best {
  border-color: var(--pf-primary);
}

.pf-gw-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pf-border);
}

.pf-gw-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.15rem 0;
  color: var(--pf-text-main);
}

.pf-gw-rate {
  font-size: 0.75rem;
  color: var(--pf-text-muted);
}

.pf-gw-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pf-gw-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--pf-text-muted);
}

.pf-gw-row strong {
  color: var(--pf-text-main);
}

.pf-net-val {
  color: #059669 !important;
}

.pf-markup-row {
  border-top: 1px dashed var(--pf-border);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.pf-tip-box {
  background: var(--pf-bg-card);
  border: 1px solid var(--pf-border);
  border-radius: 2px;
  padding: 1.25rem;
}

.pf-tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--pf-primary);
}

.pf-tip-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  line-height: 1.5;
}

.pf-ad {
  overflow: hidden;
  min-height: 280px;
  margin: 32px 0;
  text-align: center;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --pf-bg-card: var(--tf-surface);
}
