.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, #0284c7 0%, #4f46e5 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.9); font-size: 1rem; max-width: 560px; 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: 1080px; 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.02rem; font-weight: 700; color: var(--text); margin: 0; }

.opts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.preset-lbl { font-size: 0.84rem; font-weight: 700; color: var(--text); }
.mini-btn {
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.38rem 0.78rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.mini-btn:hover { border-color: #0284c7; color: #0284c7; }
.opt-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.83rem; color: var(--text); cursor: pointer; margin-left: auto; }
.opt-check input { accent-color: #0284c7; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.editor-grid > * { min-width: 0; }
@media (max-width: 840px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; gap: 0.5rem; }
.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;
}

#cssInput {
  width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1rem; font-family: ui-monospace, Menlo, monospace;
  font-size: 0.83rem; line-height: 1.58; outline: none; box-sizing: border-box; resize: vertical;
}
#cssInput:focus { border-color: #0284c7; }

.code-box {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1.05rem 1.15rem;
  overflow: auto; min-height: 295px; margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.83rem; line-height: 1.6;
}
.unmapped-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.65rem; min-height: 18px; }
