/* Equipment ROI & Lease vs Buy Calculator - Content Area Styles */
:root {
  --eqr-bg: #ffffff;
  --eqr-surface: #f8fafc;
  --eqr-card: #ffffff;
  --eqr-border: #e2e8f0;
  --eqr-line: #cbd5e1;
  --eqr-ink: #0f172a;
  --eqr-ink-soft: #475569;
  --eqr-ink-faint: #94a3b8;
  --eqr-primary: var(--tf-accent, #047857);
  --eqr-primary-hover: #065f46;
  --eqr-buy: #1d4ed8;
  --eqr-buy-bg: rgba(29, 78, 216, 0.08);
  --eqr-lease: #d97706;
  --eqr-lease-bg: rgba(217, 119, 6, 0.08);
  --eqr-radius: 2px;
}

.eqr-main {
  width: 100%;
  color: var(--eqr-ink);
}

.eqr-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Controls bar */
.eqr-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--eqr-surface);
  border: 1px solid var(--eqr-line);
  border-radius: var(--eqr-radius);
}

.eqr-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eqr-control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eqr-ink-soft);
}

/* Panels */
.eqr-panel {
  background: var(--eqr-card);
  border: 1px solid var(--eqr-line);
  border-radius: var(--eqr-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.eqr-terms-panel,
.eqr-buy-panel,
.eqr-lease-panel,
.eqr-results-panel {
  position: relative;
}

.eqr-stat-grid {
  margin-top: 16px;
}

.eqr-ad {
  overflow: hidden;
  min-height: 280px;
}

.eqr-panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--eqr-ink);
}

/* Grids & Fields */
.eqr-grid {
  display: grid;
  gap: 16px;
}

.eqr-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.eqr-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.eqr-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.eqr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eqr-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--eqr-ink);
}

.eqr-hint {
  font-size: 0.75rem;
  color: var(--eqr-ink-faint);
}

.eqr-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.eqr-input,
.eqr-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--eqr-ink);
  background: var(--eqr-card);
  border: 1px solid var(--eqr-line);
  border-radius: var(--eqr-radius);
  font-family: inherit;
  box-sizing: border-box;
}

.eqr-input:focus,
.eqr-select:focus {
  outline: 2px solid var(--eqr-primary);
  border-color: var(--eqr-primary);
}

.eqr-unit {
  position: absolute;
  right: 12px;
  font-size: 0.8125rem;
  color: var(--eqr-ink-faint);
  pointer-events: none;
}

.eqr-curr-prefix {
  position: absolute;
  left: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eqr-ink-faint);
  pointer-events: none;
}

.eqr-curr-prefix + .eqr-input {
  padding-left: 24px;
}

.eqr-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.eqr-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--eqr-primary);
}

.eqr-check-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--eqr-ink);
}

/* Action Bar */
.eqr-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.eqr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--eqr-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease;
}

.eqr-btn-primary {
  background: var(--eqr-primary);
  color: #ffffff;
}

.eqr-btn-primary:hover {
  background: var(--eqr-primary-hover);
}

.eqr-btn-secondary {
  background: var(--eqr-surface);
  color: var(--eqr-ink);
  border-color: var(--eqr-line);
}

.eqr-btn-secondary:hover {
  background: var(--eqr-card);
  border-color: var(--eqr-ink);
}

/* Verdict Banner */
.eqr-verdict-banner {
  padding: 20px;
  border: 1px solid var(--eqr-line);
  border-radius: var(--eqr-radius);
  background: var(--eqr-surface);
  margin-bottom: 20px;
  border-left-width: 4px;
  border-left-color: var(--eqr-primary);
}

.eqr-verdict-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--eqr-radius);
  margin-bottom: 8px;
  background: rgba(4, 120, 87, 0.1);
  color: var(--eqr-primary);
}

.eqr-verdict-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--eqr-ink);
}

.eqr-verdict-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  color: var(--eqr-ink-soft);
}

/* Stat Box */
.eqr-stat-box {
  padding: 14px;
  background: var(--eqr-card);
  border: 1px solid var(--eqr-line);
  border-radius: var(--eqr-radius);
}

.eqr-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--eqr-ink-soft);
  margin-bottom: 4px;
}

.eqr-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eqr-ink);
  font-variant-numeric: tabular-nums;
}

.eqr-stat-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--eqr-ink-faint);
  margin-top: 2px;
}

/* Callout */
.eqr-callout {
  margin-top: 20px;
  padding: 16px;
  background: var(--eqr-surface);
  border-left: 3px solid var(--eqr-primary);
  border-radius: 0 var(--eqr-radius) var(--eqr-radius) 0;
}

.eqr-callout-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--eqr-ink);
}

.eqr-callout-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  color: var(--eqr-ink-soft);
}

@media (max-width: 640px) {
  .eqr-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .eqr-control-group {
    justify-content: space-between;
  }
}

/* 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"] {
  --eqr-bg: var(--tf-surface);
  --eqr-surface: var(--tf-surface);
  --eqr-card: var(--tf-surface);
  --eqr-border: var(--tf-surface);
  --eqr-line: #98abc3;
  --eqr-ink: var(--tf-ink);
  --eqr-ink-soft: var(--tf-ink-soft);
  --eqr-ink-faint: var(--tf-ink-faint);
  --eqr-primary-hover: #59cfae;
  --eqr-buy: #8198da;
  --eqr-lease: #dab181;
}
