@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');

.ce-premium-tool,
.ce-premium-tool * {
  box-sizing: border-box;
}
.ce-premium-tool {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  position: relative;
  overflow-x: clip;
  box-sizing: border-box;
  background: linear-gradient(135deg, #030164 0%, #1a1878 45%, #2D7495 100%);
  color: #f4f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 42px 20px;
}
.ce-premium-tool .ce-inner {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.ce-premium-tool .ce-hero {
  text-align: center;
  margin: 0 auto 28px;
}
.ce-premium-tool h1,
.ce-premium-tool h2,
.ce-premium-tool p {
  margin-top: 0;
}
.ce-premium-tool .ce-hero h1 {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 10px;
}
.ce-premium-tool .ce-hero p {
  max-width: 690px;
  margin: 0 auto;
  color: #e6e8f2;
  line-height: 1.6;
  font-size: 16px;
}
.ce-premium-tool .ce-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 232, 242, .2);
  border-radius: 18px;
  background: #080A38;
  box-shadow: 0 18px 48px rgba(0, 0, 28, .32), 0 0 35px rgba(45, 116, 149, .15);
}
.ce-premium-tool .ce-toolbar,
.ce-premium-tool .ce-panel-header,
.ce-premium-tool .ce-statusbar,
.ce-premium-tool .ce-toolbar-actions,
.ce-premium-tool .ce-editor-actions {
  display: flex;
  align-items: center;
}
.ce-premium-tool .ce-toolbar {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #10134D, #15175a);
  border-bottom: 1px solid rgba(230, 232, 242, .14);
}
.ce-premium-tool .ce-workspace-label {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.ce-premium-tool .ce-status-dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2D7495;
  box-shadow: 0 0 0 4px rgba(45, 116, 149, .18);
  animation: ce-pulse 2.2s infinite;
}
.ce-premium-tool .ce-toolbar-actions,
.ce-premium-tool .ce-editor-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.ce-premium-tool button,
.ce-premium-tool select,
.ce-premium-tool input {
  font: inherit;
}
.ce-premium-tool .ce-button,
.ce-premium-tool .ce-icon-button,
.ce-premium-tool .ce-mini-button,
.ce-premium-tool .ce-nav-button,
.ce-premium-tool .ce-sidebar-toggle,
.ce-premium-tool .ce-side-popover button {
  border: 1px solid rgba(230, 232, 242, .2);
  border-radius: 8px;
  cursor: pointer;
  color: #f4f6fb;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ce-premium-tool .ce-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
}
.ce-premium-tool .ce-button-secondary,
.ce-premium-tool .ce-icon-button,
.ce-premium-tool .ce-mini-button {
  background: #080A38;
}
.ce-premium-tool .ce-button-accent {
  background: #2D7495;
  border-color: #2D7495;
  color: #ffffff;
}
.ce-premium-tool .ce-icon-button {
  width: 36px;
  height: 36px;
  font-size: 19px;
  font-weight: 700;
}
.ce-premium-tool .ce-select,
.ce-premium-tool .ce-side-popover select {
  min-height: 36px;
  padding: 7px 28px 7px 10px;
  color: #ffffff;
  background: #080A38;
  border: 1px solid rgba(230, 232, 242, .22);
  border-radius: 8px;
  cursor: pointer;
}
.ce-premium-tool .ce-select option,
.ce-premium-tool .ce-side-popover option {
  color: #0f172a;
  background: #ffffff;
}
.ce-premium-tool .ce-file-input,
.ce-premium-tool .ce-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ce-premium-tool button:hover,
.ce-premium-tool .ce-button:hover {
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-1px);
}
.ce-premium-tool .ce-button-accent:hover {
  background: #363199;
  border-color: #363199;
}
.ce-premium-tool button:focus-visible,
.ce-premium-tool select:focus-visible,
.ce-premium-tool input:focus-visible,
.ce-premium-tool textarea:focus-visible,
.ce-premium-tool .ce-button:focus-visible {
  outline: 2px solid #2D7495;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(45, 116, 149, .26);
}
.ce-premium-tool .ce-main {
  display: flex;
  min-width: 0;
}
.ce-premium-tool .ce-sidebar {
  position: relative;
  flex: 0 0 170px;
  padding: 12px;
  background: #0b0e42;
  border-right: 1px solid rgba(230, 232, 242, .12);
}
.ce-premium-tool .ce-sidebar-toggle {
  display: none;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  background: #10134D;
  font-weight: 700;
  text-align: left;
}
.ce-premium-tool .ce-sidebar-nav {
  display: grid;
  gap: 7px;
}
.ce-premium-tool .ce-nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #e6e8f2;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.ce-premium-tool .ce-nav-button:hover,
.ce-premium-tool .ce-nav-active {
  background: rgba(54, 49, 153, .45);
  border-color: rgba(45, 116, 149, .72);
  color: #ffffff;
}
.ce-premium-tool .ce-side-popover {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  top: 190px;
  padding: 12px;
  border: 1px solid rgba(230, 232, 242, .2);
  border-radius: 10px;
  background: #10134D;
  box-shadow: 0 12px 28px rgba(0, 0, 28, .45);
}
.ce-premium-tool .ce-side-popover h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 14px;
}
.ce-premium-tool .ce-side-popover button {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  background: #080A38;
  text-align: left;
  font-size: 12px;
}
.ce-premium-tool .ce-side-popover label {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  color: #e6e8f2;
  font-size: 12px;
}
.ce-premium-tool .ce-side-popover .ce-check-label {
  display: flex;
  align-items: center;
}
.ce-premium-tool .ce-side-popover input[type="checkbox"] {
  accent-color: #2D7495;
}
.ce-premium-tool .ce-font-output {
  color: #ffffff;
  font-weight: 700;
}
.ce-premium-tool .ce-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  min-width: 0;
  flex: 1;
  background: rgba(230, 232, 242, .13);
}
.ce-premium-tool .ce-editor-panel,
.ce-premium-tool .ce-preview-panel {
  min-width: 0;
  background: #080A38;
}
.ce-premium-tool .ce-panel-header {
  justify-content: space-between;
  min-height: 73px;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(230, 232, 242, .12);
  background: #10134D;
}
.ce-premium-tool .ce-panel-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #bfc6ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ce-premium-tool .ce-panel-header h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 16px;
}
.ce-premium-tool .ce-mini-button {
  min-height: 30px;
  padding: 6px 8px;
  color: #e6e8f2;
  font-size: 11px;
  font-weight: 700;
}
.ce-premium-tool .ce-editor-shell {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #080A38;
}
.ce-premium-tool .ce-line-numbers {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 52px;
  padding: 16px 10px;
  overflow: hidden;
  color: #7780ad;
  background: #0b0e42;
  border-right: 1px solid rgba(230, 232, 242, .1);
  font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-align: right;
  white-space: pre;
  pointer-events: none;
}
.ce-premium-tool .ce-code-layer-wrap,
.ce-premium-tool .ce-editor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 52px;
  margin: 0;
  padding: 16px;
  font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  tab-size: 4;
}
.ce-premium-tool .ce-code-layer-wrap {
  z-index: 1;
  overflow: hidden;
  color: #e6e8f2;
  pointer-events: none;
}
.ce-premium-tool .ce-highlight {
  margin: 0;
  min-width: max-content;
  white-space: pre-wrap;
  overflow-wrap: normal;
}
.ce-premium-tool .ce-editor {
  z-index: 2;
  width: calc(100% - 52px);
  border: 0;
  resize: none;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: #ffffff;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.ce-premium-tool .ce-editor::selection {
  background: rgba(45, 116, 149, .55);
  color: transparent;
}
.ce-premium-tool .ce-token-tag { color: #72d9eb; }
.ce-premium-tool .ce-token-attr { color: #b6c7ff; }
.ce-premium-tool .ce-token-string { color: #b8e6bc; }
.ce-premium-tool .ce-token-comment { color: #8792b9; font-style: italic; }
.ce-premium-tool .ce-token-keyword { color: #aeb7ff; }
.ce-premium-tool .ce-token-number { color: #f4cf91; }
.ce-premium-tool .ce-token-property { color: #75d4ca; }
.ce-premium-tool .ce-preview-frame-wrap {
  position: relative;
  min-height: 420px;
  background: #f4f6fb;
}
.ce-premium-tool .ce-preview-frame,
.ce-premium-tool .ce-text-preview,
.ce-premium-tool .ce-preview-empty {
  width: 100%;
  min-height: 420px;
  border: 0;
}
.ce-premium-tool .ce-preview-frame {
  display: block;
  background: #ffffff;
}
.ce-premium-tool .ce-text-preview {
  display: block;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #0f172a;
  background: #f4f6fb;
  font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ce-premium-tool .ce-preview-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #4b5568;
  background: #f4f6fb;
  text-align: center;
}
.ce-premium-tool .ce-statusbar {
  gap: 13px;
  min-height: 40px;
  padding: 8px 14px;
  overflow-x: auto;
  color: #c8ceed;
  background: #10134D;
  border-top: 1px solid rgba(230, 232, 242, .12);
  font-size: 11px;
  white-space: nowrap;
}
.ce-premium-tool .ce-status-message {
  margin-left: auto;
  color: #ffffff;
  font-weight: 700;
}
.ce-premium-tool .ce-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 1, 100, .72);
}
.ce-premium-tool .ce-modal[hidden] {
  display: none;
}
.ce-premium-tool .ce-modal-card {
  position: relative;
  width: min(100%, 470px);
  padding: 28px;
  border: 1px solid rgba(230, 232, 242, .25);
  border-radius: 15px;
  background: #10134D;
  box-shadow: 0 24px 60px rgba(0, 0, 28, .55);
}
.ce-premium-tool .ce-modal-card h2 {
  color: #ffffff;
  font-size: 21px;
}
.ce-premium-tool .ce-modal-card p,
.ce-premium-tool .ce-modal-card li {
  color: #e6e8f2;
  line-height: 1.6;
}
.ce-premium-tool .ce-modal-card ul {
  padding-left: 20px;
}
.ce-premium-tool kbd {
  padding: 2px 5px;
  border: 1px solid rgba(230, 232, 242, .28);
  border-radius: 4px;
  color: #ffffff;
  background: #080A38;
  font-size: 11px;
}
.ce-premium-tool .ce-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}
.ce-premium-tool ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.ce-premium-tool ::-webkit-scrollbar-track {
  background: #080A38;
}
.ce-premium-tool ::-webkit-scrollbar-thumb {
  border: 2px solid #080A38;
  border-radius: 10px;
  background: #363199;
}
@keyframes ce-pulse {
  50% { box-shadow: 0 0 0 7px rgba(45, 116, 149, .04); }
}
@media (max-width: 1023px) {
  .ce-premium-tool .ce-sidebar {
    flex-basis: 58px;
  }
  .ce-premium-tool .ce-nav-button span {
    display: none;
  }
  .ce-premium-tool .ce-nav-button {
    justify-content: center;
    font-size: 18px;
  }
  .ce-premium-tool .ce-side-popover {
    left: 58px;
    right: auto;
    width: 235px;
    top: 12px;
  }
}
@media (max-width: 767px) {
  .ce-premium-tool {
    padding: 30px 12px;
  }
  .ce-premium-tool .ce-hero h1 {
    font-size: 30px;
  }
  .ce-premium-tool .ce-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .ce-premium-tool .ce-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .ce-premium-tool .ce-main {
    display: block;
  }
  .ce-premium-tool .ce-sidebar {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(230, 232, 242, .12);
  }
  .ce-premium-tool .ce-sidebar-toggle {
    display: block;
  }
  .ce-premium-tool .ce-sidebar-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }
  .ce-premium-tool .ce-sidebar.ce-menu-open .ce-sidebar-nav {
    display: grid;
  }
  .ce-premium-tool .ce-nav-button span {
    display: inline;
  }
  .ce-premium-tool .ce-nav-button {
    justify-content: flex-start;
    font-size: 13px;
  }
  .ce-premium-tool .ce-side-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .ce-premium-tool .ce-content {
    grid-template-columns: 1fr;
  }
  .ce-premium-tool .ce-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .ce-premium-tool .ce-editor-actions {
    justify-content: flex-start;
  }
  .ce-premium-tool .ce-editor-shell,
  .ce-premium-tool .ce-preview-frame-wrap,
  .ce-premium-tool .ce-preview-frame,
  .ce-premium-tool .ce-text-preview,
  .ce-premium-tool .ce-preview-empty {
    min-height: 330px;
  }
}
@media (max-width: 429px) {
  .ce-premium-tool .ce-hero h1 {
    font-size: 28px;
  }
  .ce-premium-tool .ce-toolbar-actions > * {
    flex: 1 1 auto;
  }
  .ce-premium-tool .ce-icon-button {
    flex: 0 0 36px;
  }
  .ce-premium-tool .ce-select {
    max-width: 120px;
  }
}
@media (max-width: 374px) {
  .ce-premium-tool {
    padding: 24px 8px;
  }
  .ce-premium-tool .ce-hero h1 {
    font-size: 26px;
  }
  .ce-premium-tool .ce-hero p {
    font-size: 14px;
  }
  .ce-premium-tool .ce-workspace {
    border-radius: 12px;
  }
  .ce-premium-tool .ce-editor-actions {
    width: 100%;
  }
  .ce-premium-tool .ce-mini-button {
    flex: 1 1 42%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ce-premium-tool *,
  .ce-premium-tool *::before,
  .ce-premium-tool *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}