.ad-slot,.ad-leaderboard,.ad-in-article,.ad-anchor,.ad-placeholder,[class*='ad-slot']{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}

.tool-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 3rem 1.5rem 2.5rem; text-align: center; color: #fff;
}
.tool-hero h1 { font-size: 2rem; font-weight: 800; color: #fff !important; line-height: 1.25; margin: 0 auto 0.5rem; max-width: 740px; }
.tool-hero p { color: rgba(255,255,255,0.88); font-size: 1rem; max-width: 580px; margin: 0 auto; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 50px; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: #fff; margin-bottom: 1rem;
}

.tool-page { max-width: 1020px; margin: 0 auto; padding: 2.25rem 1.5rem; }
.calc-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.calc-card h2 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin: 0 0 1rem; }

.fmt-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fmt-tab {
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted);
  border-radius: 10px; padding: 0.5rem 0.95rem; font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.fmt-tab.is-active { background: #4f46e5; border-color: #4f46e5; color: #fff; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .workspace-grid { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.62rem 0.85rem; font-size: 0.88rem; font-family: inherit; outline: none; box-sizing: border-box;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #4f46e5; }

.guardrails-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.5rem; }
.g-check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.84rem; color: var(--text); cursor: pointer; line-height: 1.45; }
.g-check input { margin-top: 0.2rem; accent-color: #4f46e5; }

.output-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.9rem; }
.file-badge {
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 0.76rem; font-weight: 700;
  color: #4f46e5; background: rgba(79,70,229,0.1); padding: 0.25rem 0.65rem; border-radius: 8px;
}
.output-btns { display: flex; gap: 0.5rem; }
.btn-primary {
  background: #4f46e5; color: #fff; border: none; border-radius: 10px; padding: 0.52rem 0.95rem;
  font-size: 0.83rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-secondary {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.5rem 0.9rem; font-size: 0.83rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}

.code-box {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1.15rem 1.25rem;
  overflow-x: auto; max-height: 540px; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem; line-height: 1.62; white-space: pre-wrap;
}
