/* BareKit HTML Studio frontend styles v1.2.1 */
.bkhp-shell {
  --bk-brand: #c3dc36;
  --bk-bg: #071019;
  --bk-bg-2: #0c1525;
  --bk-panel: #101827;
  --bk-panel-2: #151f30;
  --bk-text: #d7dbe7;
  --bk-heading: #f5f5f2;
  --bk-muted: #9ea7b8;
  --bk-line: rgba(195,220,54,.16);
  --bk-warn: #f1c96b;
  --bk-error: #ff6f7d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.bkhp-shell * { box-sizing: border-box; }
.bkhp-public-hero {
  margin: 28px 0 18px;
  padding: 34px clamp(22px, 5vw, 48px);
  border: 1px solid var(--bk-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(195,220,54,.18), transparent 36%),
    linear-gradient(180deg, rgba(12,21,37,.98), rgba(7,16,25,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.bkhp-public-kicker {
  color: var(--bk-brand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 850;
  margin-bottom: 10px;
}
.bkhp-public-hero h1 {
  color: var(--bk-heading);
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}
.bkhp-public-hero p {
  color: var(--bk-muted);
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
}
.bkhp-wrap {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--bk-line);
  background: var(--bk-bg);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
  margin: 1.5em 0;
  min-height: 420px;
}
.bkhp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(195,220,54,.1), transparent 30%),
    linear-gradient(180deg, #0c1525, #071019);
  border-bottom: 1px solid var(--bk-line);
  flex-shrink: 0;
}
.bkhp-toolbar-left { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.bkhp-status { font-size: 12px; color: var(--bk-muted); font-weight: 650; white-space: nowrap; }
.bkhp-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; line-height: 1; }
.bkhp-badge-ok { background: rgba(195,220,54,.14); color: var(--bk-brand); }
.bkhp-badge-warn { background: rgba(241,201,107,.14); color: var(--bk-warn); }
.bkhp-badge-error { background: rgba(255,111,125,.14); color: var(--bk-error); }
.bkhp-toolbar-btns { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.bkhp-btn {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--bk-text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bkhp-btn:hover { transform: translateY(-1px); background: rgba(195,220,54,.08); border-color: rgba(195,220,54,.22); }
.bkhp-btn-check { color: var(--bk-warn); }
.bkhp-btn-fix, .bkhp-btn-save, .bkhp-btn-load { color: var(--bk-brand); }
.bkhp-btn-copy, .bkhp-btn-copy-php { background: var(--bk-brand); color: #071019; border-color: var(--bk-brand); }
.bkhp-btn-copy:hover, .bkhp-btn-copy-php:hover { background: var(--bk-brand); filter: brightness(1.04); }
.bkhp-btn-clear { color: #ff9aa4; }
.bkhp-report {
  background: #0b111d;
  border-bottom: 1px solid var(--bk-line);
  flex-shrink: 0;
  max-height: 190px;
  overflow-y: auto;
  font-size: 12px;
}
.bkhp-report-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: var(--bk-heading); background: #0c1525; border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; }
.bkhp-report-close-btn { background: transparent; border: 0; color: var(--bk-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.bkhp-report-list { list-style: none; margin: 0; padding: 8px 0 12px; }
.bkhp-report-list li { display: flex; gap: 9px; padding: 6px 14px; color: var(--bk-muted); line-height: 1.45; }
.bkhp-report-list li span { flex: 0 0 16px; font-weight: 900; }
.bkhp-ri-error { color: var(--bk-error) !important; }
.bkhp-ri-warn { color: var(--bk-warn) !important; }
.bkhp-ri-fix { color: var(--bk-brand) !important; }
.bkhp-split { display: flex; flex: 1; overflow: hidden; min-height: 0; }
.bkhp-pane { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.bkhp-pane-label, .bkhp-tabs {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #0c1525;
  border-bottom: 1px solid rgba(195,220,54,.12);
  color: var(--bk-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.bkhp-tabs button {
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--bk-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.bkhp-tabs button.is-active { color: #071019; background: var(--bk-brand); border-color: var(--bk-brand); }
.bkhp-editor {
  display: none;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(195,220,54,.05), transparent 34%),
    #071019;
  color: var(--bk-brand);
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  padding: 16px;
  tab-size: 2;
  overflow: auto;
  width: 100%;
}
.bkhp-editor.is-active { display: block; }
.bkhp-editor::placeholder { color: rgba(158,167,184,.42); }
.bkhp-editor:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(195,220,54,.12); }
.bkhp-divider { width: 5px; background: rgba(195,220,54,.12); cursor: col-resize; flex-shrink: 0; transition: background .15s; }
.bkhp-divider:hover, .bkhp-divider.is-dragging { background: var(--bk-brand); }
.bkhp-frame { flex: 1; border: 0; background: #fff; display: block; width: 100%; }
.bkhp-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  padding: 16px;
  background: #020604;
  overflow: auto;
}
.bkhp-shell.is-fullscreen .bkhp-public-hero { display: none; }
.bkhp-shell.is-fullscreen .bkhp-wrap { height: calc(100vh - 32px) !important; margin: 0; border-radius: 20px; }
@media (max-width: 900px) {
  .bkhp-toolbar { align-items: flex-start; flex-direction: column; }
  .bkhp-toolbar-btns { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .bkhp-wrap { height: 760px !important; }
  .bkhp-split { flex-direction: column; }
  .bkhp-divider { width: 100%; height: 5px; cursor: row-resize; }
  .bkhp-pane { flex: none; height: 50%; }
  .bkhp-btn { font-size: 11px; padding: 0 9px; }
}

/* Full viewport, including Safari dynamic viewport and page-builder containers. */
.bkhp-shell.is-fullscreen{box-sizing:border-box;width:100%;height:100vh;height:100dvh;max-width:none!important;max-height:none!important;margin:0!important;border:0;overflow:hidden;}
.bkhp-shell.is-fullscreen .bkhp-wrap{height:100%!important;min-height:0;max-height:100%;box-sizing:border-box;}
.bkhp-shell.is-fullscreen .bkhp-toolbar{flex-shrink:0;}
.bkhp-frame{min-height:0;}

/* Keep host theme textarea focus rules out of the code editors. */
.bkhp-shell textarea.bkhp-editor,
.bkhp-shell textarea.bkhp-editor:focus {
  background: #071019 !important;
  color: #c3dc36 !important;
  -webkit-text-fill-color: #c3dc36 !important;
  caret-color: #f5f5f2;
  color-scheme: dark;
}
.bkhp-shell textarea.bkhp-editor::selection {
  background: #c3dc36;
  color: #071019;
  -webkit-text-fill-color: #071019;
}

.bkhp-window-controls{display:flex;gap:6px;align-items:center;flex-shrink:0;margin-right:10px}
.bkhp-window-controls .bkhp-window-icon{width:38px;height:38px;padding:8px;display:inline-flex;align-items:center;justify-content:center}
.bkhp-window-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bkhp-window-icon:focus-visible{outline:2px solid #c3dc36;outline-offset:2px}
