body, input, select, textarea, button, .chip, .btn {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive, sans-serif !important;
}

.tool-center-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.main-tool-card {
  width: 100%;
  max-width: 1000px;
}

.tool-head { margin-bottom: 22px; }
.tool-head h2 { font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.tool-layout { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 24px; align-items: start; }
.panel { background: var(--card-bg); border: 2px solid var(--card-border); border-radius: 12px; padding: 22px; box-shadow: 4px 4px 0 rgba(0,0,0,.15); }
.panel h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.panel + .panel { margin-top: 20px; }
.field { margin-bottom: 14px; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.field input[type=text], .field input[type=url], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=password], .field input[type=file], .field select, .field textarea { width: 100%; padding: 10px 12px; border: 2px solid #000; border-radius: 8px; font-size: 14px; background: #fff; color: var(--text-main); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.field input[type=color] { width: 48px; height: 38px; border: 2px solid #000; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.field input[type=range] { width: 100%; accent-color: #2563eb; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 7px 12px; border: 2px solid #000; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.active { background: #2563eb; color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 2px solid #000; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; background: #2563eb; color: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.btn.ghost { background: #fff; color: #000; }
.btn.green { background: #16a34a; }
.btn.red { background: #dc2626; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.preview { background-color: #fff; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%), linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%); background-size: 20px 20px; border: 2px solid #000; border-radius: 12px; min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.empty { color: var(--text-muted); text-align: center; font-size: 14px; background: #fff; padding: 14px 18px; border-radius: 10px; }
.empty i { font-size: 34px; display: block; margin-bottom: 8px; color: #94a3b8; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; border: 2px solid; display: none; line-height: 1.45; }
.alert.show { display: block; }
.alert.err { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.alert.warn { background: #fffbeb; border-color: #d97706; color: #92400e; }
@media(max-width:900px) { .tool-layout { grid-template-columns: 1fr; } }