.inside-header {
  position: relative;
}

@media (min-width: 1001px) {
  .site-header .inside-header {
    padding-bottom: 8px !important;
  }
}

#site-navigation,
.main-navigation {
  position: relative;
  z-index: 300 !important;
}

.site-header,
#site-navigation {
  position: static !important;
  top: auto !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a *,
.main-navigation .dropdown-menu-toggle,
.main-navigation .dropdown-menu-toggle::before {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.jc-header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  pointer-events: auto;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 10;
}

.jc-header-actions .jc-header-lang-switch {
  float: none !important;
  padding: 0 !important;
}

.jc-header-actions .jc-header-lang-switch a {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.inside-header > .jc-header-lang-switch {
  float: none !important;
  padding: 0 !important;
  position: absolute;
  right: 170px;
  top: 20px;
  z-index: 10;
}

.inside-header > .jc-auth-control,
.inside-header > .jc-header-lang-switch {
  pointer-events: auto;
}

.inside-header > .jc-header-lang-switch a {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.jc-auth-control {
  float: none;
  margin: 0;
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 5;
}

.jc-header-actions .jc-auth-control {
  float: none;
  margin: 0;
  position: relative;
  right: auto;
  top: auto;
}

.jc-auth-open,
.jc-auth-menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  line-height: 1.2;
  min-height: 38px;
  padding: 8px 12px;
}

.jc-auth-open:hover,
.jc-auth-open:focus,
.jc-auth-menu-toggle:hover,
.jc-auth-menu-toggle:focus {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.jc-auth-menu-toggle img {
  border-radius: 50%;
  display: block;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.jc-auth-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  min-width: 170px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
}

.jc-auth-menu a {
  color: #1f2937;
  display: block;
  font-size: 14px;
  padding: 9px 10px;
  text-decoration: none;
}

.jc-auth-menu a:hover {
  background: #f2f4f7;
}

#downloadBtn.jc-download-main,
#downloadBtnTop.jc-download-main {
  align-items: center !important;
  display: inline-flex !important;
  gap: 8px !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 48px !important;
  min-width: 230px !important;
  width: auto !important;
}

#downloadBtnTop.jc-download-main {
  width: 100% !important;
}

.jc-download-icon {
  font-size: 22px;
  line-height: 1;
}

.jc-download-main.jc-saving {
  opacity: .72;
}

.jc-auth-lock {
  overflow: hidden;
}

.jc-auth-modal[hidden],
.jc-toast[hidden] {
  display: none !important;
}

.jc-auth-modal {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.jc-auth-backdrop {
  background: rgba(0, 0, 0, .62);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.jc-auth-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  left: 50%;
  max-width: 460px;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.jc-auth-close {
  align-items: center;
  background: #f2f4f7;
  border: 0;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
}

.jc-auth-preview-wrap {
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  text-align: center;
}

.jc-auth-preview {
  display: block;
  max-height: 220px;
  object-fit: contain;
  width: 100%;
}

.jc-auth-dialog h2 {
  color: #111;
  font-size: 24px !important;
  line-height: 1.18;
  margin: 0 28px 10px 0;
  text-align: left !important;
}

.jc-auth-dialog p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.jc-google-btn {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 16px;
  width: 100%;
}

.jc-google-host {
  min-height: 44px;
  width: 100%;
}

.jc-google-host > div {
  margin: 0 auto;
}

.jc-google-btn:hover {
  background: #f9fafb;
}

.jc-auth-privacy {
  color: #667085 !important;
  font-size: 12px !important;
  margin-top: 12px !important;
}

.jc-auth-error {
  color: #b42318 !important;
  font-size: 13px !important;
  margin-top: 10px !important;
}

.jc-toast {
  background: #1f2937;
  border-radius: 6px;
  bottom: 22px;
  color: #fff;
  font-size: 14px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 11px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 100001;
}

.jc-account-page {
  padding: 32px 16px 56px !important;
}

.jc-account-layout {
  align-items: flex-start;
  display: grid;
  gap: 28px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.jc-account-sidebar {
  border-right: 1px solid rgba(0, 0, 0, .1);
  padding: 8px 18px 8px 0;
  position: sticky;
  top: 18px;
}

.jc-account-sidebar-title {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  margin: 0 0 12px;
  padding: 0;
  text-transform: uppercase;
}

.jc-account-nav {
  display: grid;
  gap: 8px;
}

.jc-account-nav a {
  border-radius: 6px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 12px;
  text-decoration: none;
}

.jc-account-nav a:hover,
.jc-account-nav a.is-active {
  background: #20307a;
  color: #fff;
}

.jc-account-nav .jc-account-logout {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(31, 41, 55, .16);
  color: #4b5563;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.jc-account-nav .jc-account-logout::before {
  content: "";
  background: currentColor;
  display: inline-block;
  height: 16px;
  width: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jc-account-nav .jc-account-logout:hover {
  background: #f3f4f6;
  border-color: rgba(31, 41, 55, .24);
  color: #1f2937;
}

.jc-account-main {
  min-width: 0;
}

.jc-account-page h1 {
  margin-bottom: 22px !important;
}

.jc-creations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.jc-creation-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  overflow: hidden;
}

.jc-creation-preview-btn {
  background: #f4f4f4;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.jc-creation-card img {
  background: #f4f4f4;
  display: block;
  height: 210px;
  object-fit: contain;
  width: 100%;
}

.jc-creation-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 10px;
}

.jc-creation-actions a,
.jc-creation-actions button,
.jc-account-start {
  background: #20307a;
  border: 0;
  border-radius: 6px;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.jc-creation-actions button {
  background: #f2f4f7;
  color: #1f2937 !important;
}

.jc-creation-actions a,
.jc-creation-actions .jc-creation-restart {
  background: #eef2ff;
  color: #20307a !important;
}

.jc-creation-actions button[data-jc-delete-creation] {
  background: rgba(180, 35, 24, .06);
  border: 1px solid rgba(180, 35, 24, .18);
  color: #912018 !important;
}

.jc-creation-actions button[data-jc-delete-creation]:hover {
  background: rgba(180, 35, 24, .1);
  border-color: rgba(180, 35, 24, .3);
}

.jc-creation-lightbox[hidden] {
  display: none !important;
}

.jc-creation-lightbox {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.jc-creation-lightbox-backdrop {
  background: rgba(0, 0, 0, .72);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.jc-creation-lightbox-dialog {
  align-items: center;
  display: flex;
  inset: 24px;
  justify-content: center;
  position: absolute;
}

.jc-creation-lightbox-img {
  background: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  display: block;
  max-height: calc(100vh - 72px);
  max-width: min(900px, calc(100vw - 48px));
  object-fit: contain;
}

.jc-creation-lightbox-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 40px;
  z-index: 1;
}

.jc-account-empty {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  padding: 24px;
}

.jc-profile-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  max-width: 680px;
  overflow: hidden;
}

.jc-profile-head {
  align-items: center;
  background: #f8fafc;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.jc-profile-head img {
  border-radius: 50%;
  display: block;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.jc-profile-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.jc-profile-head span {
  color: #667085;
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.jc-profile-list {
  margin: 0;
}

.jc-profile-list div {
  border-top: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  gap: 16px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 16px 18px;
}

.jc-profile-list dt {
  color: #667085;
  font-weight: 700;
}

.jc-profile-list dd {
  margin: 0;
}

.jc-profile-list small {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 1000px) {
  .jc-header-actions {
    right: 12px;
    top: 8px;
  }
  .inside-header > .jc-header-lang-switch {
    right: 64px;
    top: 8px;
  }
  .jc-auth-control {
    right: 12px;
    top: 8px;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    min-height: 34px;
    padding: 7px 10px;
  }
}

@media (max-width: 800px) {
  .jc-account-layout {
    grid-template-columns: 1fr;
  }
  .jc-account-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 0 0 14px;
    position: static;
  }
  .jc-account-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .jc-profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .jc-header-actions {
    justify-content: flex-end;
    position: absolute;
    right: 12px;
    top: 8px;
    width: auto;
  }
  .inside-header > .jc-header-lang-switch {
    right: 60px;
    top: 8px;
  }
  .jc-auth-control {
    float: none;
    margin: 0;
    right: 12px;
    top: 8px;
    text-align: right;
  }
  .jc-header-actions .jc-auth-control {
    margin: 0;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    font-size: 0;
    gap: 0;
    min-height: 36px;
    min-width: 36px;
    padding: 6px;
  }
  .jc-auth-open::before,
  .jc-auth-menu-toggle::before {
    content: "";
    background: currentColor;
    display: inline-block;
    height: 18px;
    width: 18px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .jc-auth-menu-toggle img,
  .jc-auth-menu-toggle span {
    display: none;
  }
  .jc-header-actions .jc-header-lang-switch a {
    min-height: 36px;
  }
  .jc-auth-dialog {
    border-radius: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    overflow: auto;
    padding: 46px 18px 22px;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
  }
  .jc-auth-dialog h2 {
    font-size: 22px !important;
  }
  .jc-auth-preview {
    max-height: 42vh;
  }
}

@media (max-width: 380px) {
  .jc-header-actions {
    gap: 10px;
    right: 8px;
  }
  .jc-auth-open,
  .jc-auth-menu-toggle {
    min-height: 34px;
    min-width: 34px;
  }
}
