@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.hf-html-formatter-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  position: relative;
  overflow-x: clip;
  background: linear-gradient(135deg, #030164 0%, #1a1878 45%, #2D7495 100%);
  color: #ffffff;
  padding: 34px 16px;
  font-family: Arial, sans-serif;
}
.hf-html-formatter-wrap *,
.hf-html-formatter-wrap *::before,
.hf-html-formatter-wrap *::after { box-sizing: border-box; }
.hf-html-formatter-wrap .hf-shell { width: 100%; max-width: 1200px; margin: 0 auto; }
.hf-html-formatter-wrap .hf-hero { text-align: center; margin: 0 auto 28px; }
.hf-html-formatter-wrap .hf-hero h1 { margin: 0; color: #ffffff; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; }
.hf-html-formatter-wrap .hf-hero p { max-width: 690px; margin: 11px auto 0; color: #dcecf5; font-size: 16px; line-height: 1.55; }
.hf-html-formatter-wrap .hf-workspace { overflow: hidden; background: #080A38; border: 1px solid rgba(45, 116, 149, .8); border-radius: 18px; box-shadow: 0 22px 54px rgba(3, 1, 100, .44), 0 0 28px rgba(45, 116, 149, .16); }
.hf-html-formatter-wrap .hf-topbar { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #10134D; border-bottom: 1px solid rgba(45, 116, 149, .55); }
.hf-html-formatter-wrap .hf-brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: #ffffff; font-size: 14px; letter-spacing: .02em; }
.hf-html-formatter-wrap .hf-brand-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #2D7495; box-shadow: 0 0 12px #2D7495; }
.hf-html-formatter-wrap .hf-topbar-actions,
.hf-html-formatter-wrap .hf-panel-actions,
.hf-html-formatter-wrap .hf-status-items,
.hf-html-formatter-wrap .hf-status-right { display: flex; align-items: center; gap: 8px; }
.hf-html-formatter-wrap button,
.hf-html-formatter-wrap select,
.hf-html-formatter-wrap textarea { font: inherit; }
.hf-html-formatter-wrap button { cursor: pointer; }
.hf-html-formatter-wrap .hf-button,
.hf-html-formatter-wrap .hf-icon-button,
.hf-html-formatter-wrap .hf-text-button {
  border: 1px solid rgba(45, 116, 149, .72);
  color: #f5f5f5;
  background: #10134D;
  border-radius: 9px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hf-html-formatter-wrap .hf-button:hover,
.hf-html-formatter-wrap .hf-icon-button:hover,
.hf-html-formatter-wrap .hf-text-button:hover { background: #363199; border-color: #2D7495; box-shadow: 0 0 16px rgba(45, 116, 149, .28); }
.hf-html-formatter-wrap .hf-button:focus-visible,
.hf-html-formatter-wrap .hf-icon-button:focus-visible,
.hf-html-formatter-wrap .hf-text-button:focus-visible,
.hf-html-formatter-wrap select:focus-visible,
.hf-html-formatter-wrap textarea:focus-visible { outline: 2px solid #2D7495; outline-offset: 2px; }
.hf-html-formatter-wrap .hf-button { width: 100%; min-height: 42px; padding: 10px 12px; text-align: left; font-weight: 700; font-size: 13px; }
.hf-html-formatter-wrap .hf-button-primary { background: #363199; border-color: #2D7495; box-shadow: 0 0 16px rgba(45, 116, 149, .2); }
.hf-html-formatter-wrap .hf-button-danger { color: #ffffff; border-color: rgba(255,255,255,.28); }
.hf-html-formatter-wrap .hf-button-quiet { width: auto; min-height: 36px; padding: 7px 10px; font-size: 12px; text-align: center; }
.hf-html-formatter-wrap .hf-icon-button { width: 36px; height: 36px; padding: 0; font-size: 16px; font-weight: 700; }
.hf-html-formatter-wrap .hf-text-button { min-height: 31px; padding: 6px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hf-html-formatter-wrap .hf-file-input { display: none; }
.hf-html-formatter-wrap .hf-help-panel { padding: 11px 16px; color: #e7f4fa; background: rgba(45, 116, 149, .2); border-bottom: 1px solid rgba(45, 116, 149, .42); font-size: 13px; line-height: 1.45; }
.hf-html-formatter-wrap .hf-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 490px; }
.hf-html-formatter-wrap .hf-sidebar { padding: 17px; background: #080A38; border-right: 1px solid rgba(45, 116, 149, .45); transition: max-height .25s ease, padding .25s ease, opacity .25s ease; }
.hf-html-formatter-wrap .hf-sidebar-section { display: grid; gap: 9px; padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid rgba(45, 116, 149, .3); }
.hf-html-formatter-wrap .hf-sidebar-section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.hf-html-formatter-wrap .hf-sidebar-bottom { margin-top: auto; }
.hf-html-formatter-wrap .hf-sidebar h2,
.hf-html-formatter-wrap .hf-panel h2 { margin: 0; color: #ffffff; font-size: 13px; line-height: 1.2; }
.hf-html-formatter-wrap .hf-sidebar label { color: #dcecf5; font-size: 12px; font-weight: 700; }
.hf-html-formatter-wrap select { width: 100%; min-height: 39px; padding: 8px 10px; appearance: auto; color: #ffffff; background: #10134D; border: 1px solid rgba(45, 116, 149, .65); border-radius: 8px; }
.hf-html-formatter-wrap select option { background: #10134D; color: #ffffff; }
.hf-html-formatter-wrap .hf-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; line-height: 1.3; }
.hf-html-formatter-wrap .hf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.hf-html-formatter-wrap .hf-toggle span:first-of-type { width: 32px; height: 18px; flex: 0 0 auto; position: relative; border-radius: 20px; background: #363199; border: 1px solid rgba(255,255,255,.26); transition: background .2s ease; }
.hf-html-formatter-wrap .hf-toggle span:first-of-type::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; transition: transform .2s ease; }
.hf-html-formatter-wrap .hf-toggle input:checked + span { background: #2D7495; }
.hf-html-formatter-wrap .hf-toggle input:checked + span::after { transform: translateX(14px); }
.hf-html-formatter-wrap .hf-editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; min-width: 0; background: rgba(45, 116, 149, .45); }
.hf-html-formatter-wrap .hf-panel { min-width: 0; display: flex; flex-direction: column; background: #080A38; }
.hf-html-formatter-wrap .hf-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 61px; padding: 10px 13px; background: #10134D; border-bottom: 1px solid rgba(45, 116, 149, .4); }
.hf-html-formatter-wrap .hf-panel-toolbar span { display: block; margin-top: 4px; color: #b9d4e1; font-size: 11px; }
.hf-html-formatter-wrap .hf-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 428px; min-width: 0; overflow: hidden; background: #080A38; }
.hf-html-formatter-wrap .hf-gutter { margin: 0; padding: 15px 9px 15px 11px; overflow: hidden; user-select: none; color: #7fa8b9; background: #10134D; border-right: 1px solid rgba(45, 116, 149, .34); font: 13px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; text-align: right; white-space: pre; }
.hf-html-formatter-wrap textarea { width: 100%; min-width: 0; height: 100%; resize: none; border: 0; outline: 0; padding: 15px; color: #ffffff; background: #080A38; font: 13px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; tab-size: 2; overflow: auto; white-space: pre; }
.hf-html-formatter-wrap textarea::placeholder { color: #8aa8b8; opacity: 1; }
.hf-html-formatter-wrap textarea[readonly] { color: #eaf6fb; background: #080A38; }
.hf-html-formatter-wrap textarea:focus { box-shadow: inset 0 0 0 1px #2D7495, inset 0 0 18px rgba(45,116,149,.12); }
.hf-html-formatter-wrap textarea::-webkit-scrollbar { width: 10px; height: 10px; }
.hf-html-formatter-wrap textarea::-webkit-scrollbar-track { background: #080A38; }
.hf-html-formatter-wrap textarea::-webkit-scrollbar-thumb { background: #363199; border: 2px solid #080A38; border-radius: 10px; }
.hf-html-formatter-wrap textarea::-webkit-scrollbar-thumb:hover { background: #2D7495; }
.hf-html-formatter-wrap .hf-statusbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 51px; padding: 11px 16px; color: #cae3ee; background: #10134D; border-top: 1px solid rgba(45, 116, 149, .5); font-size: 11px; }
.hf-html-formatter-wrap .hf-status-items { flex-wrap: wrap; }
.hf-html-formatter-wrap .hf-status-items span:not(:last-child)::after { content: "•"; margin-left: 8px; color: #2D7495; }
.hf-html-formatter-wrap .hf-status-right { flex-wrap: wrap; }
.hf-html-formatter-wrap .hf-validation { color: #dcecf5; font-weight: 700; }
.hf-html-formatter-wrap .hf-validation.is-valid { color: #aee6f5; }
.hf-html-formatter-wrap .hf-validation.is-error { color: #ffffff; text-decoration: underline; text-decoration-color: #2D7495; text-underline-offset: 3px; }
.hf-html-formatter-wrap .hf-local { display: inline-flex; align-items: center; gap: 6px; color: #dcecf5; }
.hf-html-formatter-wrap .hf-local i { width: 7px; height: 7px; border-radius: 50%; background: #2D7495; box-shadow: 0 0 10px #2D7495; animation: hf-pulse 2s infinite; }
.hf-html-formatter-wrap .hf-live-message { min-height: 0; padding: 0 16px; color: #ffffff; background: #363199; font-size: 12px; line-height: 1.4; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s ease, max-height .2s ease, padding .2s ease; }
.hf-html-formatter-wrap .hf-live-message.is-visible { max-height: 60px; padding-top: 9px; padding-bottom: 9px; opacity: 1; }
@keyframes hf-pulse { 50% { opacity: .45; box-shadow: 0 0 2px #2D7495; } }
@media (max-width: 1199px) {
  .hf-html-formatter-wrap .hf-sidebar-toggle { display: inline-block; }
  .hf-html-formatter-wrap .hf-sidebar.is-collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; opacity: 0; border: 0; }
  .hf-html-formatter-wrap .hf-layout { grid-template-columns: 195px minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .hf-html-formatter-wrap .hf-sidebar-toggle { display: none; }
}
@media (max-width: 767px) {
  .hf-html-formatter-wrap { padding: 24px 10px; }
  .hf-html-formatter-wrap .hf-topbar { align-items: flex-start; }
  .hf-html-formatter-wrap .hf-topbar-actions { justify-content: flex-end; flex-wrap: wrap; }
  .hf-html-formatter-wrap .hf-layout { display: block; }
  .hf-html-formatter-wrap .hf-sidebar { border-right: 0; border-bottom: 1px solid rgba(45, 116, 149, .45); }
  .hf-html-formatter-wrap .hf-sidebar.is-collapsed { display: none; }
  .hf-html-formatter-wrap .hf-editors { grid-template-columns: 1fr; }
  .hf-html-formatter-wrap .hf-editor { height: 300px; }
  .hf-html-formatter-wrap .hf-panel-toolbar { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 374px) {
  .hf-html-formatter-wrap { padding: 18px 7px; }
  .hf-html-formatter-wrap .hf-hero h1 { font-size: 26px; }
  .hf-html-formatter-wrap .hf-hero p { font-size: 14px; }
  .hf-html-formatter-wrap .hf-topbar { padding: 10px; }
  .hf-html-formatter-wrap .hf-button-quiet { display: none; }
}
@media (min-width: 375px) and (max-width: 429px) { .hf-html-formatter-wrap .hf-hero h1 { font-size: 28px; } }
@media (min-width: 430px) and (max-width: 767px) { .hf-html-formatter-wrap .hf-hero h1 { font-size: 30px; } }
@media (min-width: 768px) and (max-width: 1023px) { .hf-html-formatter-wrap .hf-hero h1 { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .hf-html-formatter-wrap *,
  .hf-html-formatter-wrap *::before,
  .hf-html-formatter-wrap *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}