.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, #0f172a 0%, #0369a1 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: 720px; }
.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: 1120px; margin: 0 auto; padding: 2.25rem 1.5rem; }
.calc-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.4rem;
}
.calc-card h2 { font-size: 1.04rem; font-weight: 700; color: var(--text); margin: 0; }
.preset-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.preset-lbl { font-size: 0.84rem; font-weight: 700; color: var(--text); }

.llms-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 1.4rem; align-items: start; }
.llms-grid > .calc-card { min-width: 0; }
@media (max-width: 880px) { .llms-grid { grid-template-columns: minmax(0, 1fr); } }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.out-btns { display: flex; align-items: center; gap: 0.45rem; }
.token-pill {
  font-size: 0.78rem; color: var(--text-muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.22rem 0.65rem;
}
.mini-btn {
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.4rem 0.78rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.mini-btn:hover { border-color: #0284c7; color: #0284c7; }
.btn-primary {
  background: #0284c7; color: #fff; border: none; border-radius: 8px; padding: 0.42rem 0.88rem;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
}
.btn-primary:hover { background: #0369a1; }

.field { margin-bottom: 0.85rem; }
.field label, .bulk-box label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.field input, .field textarea, .bulk-box textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 0.5rem 0.7rem; font-size: 0.84rem; outline: none; box-sizing: border-box; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: #0284c7; }

.links-head { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0 0.6rem; }
.links-head h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0; }
.link-rows { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 0.9rem; }
.link-item {
  display: grid; grid-template-columns: 95px 1fr 1.15fr 28px; gap: 0.4rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem;
}
@media (max-width: 560px) { .link-item { grid-template-columns: 1fr; } }
.link-item input, .link-item select {
  width: 100%; background: var(--card-bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 7px; padding: 0.36rem 0.5rem; font-size: 0.79rem; outline: none; box-sizing: border-box;
}
.rm-row {
  border: none; background: transparent; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 0;
}
.rm-row:hover { color: #dc2626; }

.bulk-box { border-top: 1px solid var(--border); padding-top: 0.85rem; }
.bulk-row { display: flex; gap: 0.5rem; align-items: flex-start; }

.code-box {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1rem 1.15rem;
  overflow: auto; min-height: 440px; max-height: 640px; max-width: 100%; margin: 0;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.83rem; line-height: 1.6;
}
