.editor-account-dialog,
.editor-upgrade-dialog {
  box-sizing: border-box;
  width: min(calc(100vw - 28px), 424px);
  max-height: min(90vh, 780px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  border: 1px solid #3c3553;
  border-radius: 18px;
  background: linear-gradient(148deg, #1a1727 0%, #10121c 58%, #11151c 100%);
  box-shadow: 0 28px 90px #000b, inset 0 1px #ffffff12;
  color: #f7f5ff;
  color-scheme: dark;
  font-family: inherit;
  text-align: start;
}
.editor-account-dialog[open], .editor-upgrade-dialog[open] { display: block; }
.editor-upgrade-dialog { width: min(calc(100vw - 16px), 520px); padding: 18px 10px 16px; border-radius: 13px; }
.editor-account-dialog::backdrop, .editor-upgrade-dialog::backdrop {
  background: #04050bc9;
  backdrop-filter: blur(8px);
}
.editor-account-dialog *, .editor-upgrade-dialog * { box-sizing: border-box; }
.editor-modal-head { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.editor-modal-brand { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #7d59d91f; }
.editor-modal-brand img { display: block; width: 23px; height: 23px; }
.editor-modal-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff26; border-radius: 8px; background: #ffffff0f; color: #e9e5f4; font: 21px/1 sans-serif; cursor: pointer; }
.editor-modal-close:hover { background: #ffffff1d; border-color: #aa94e4; }
.editor-upgrade-kicker { color: #b59dff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
.editor-upgrade-dialog > h2 { margin: 5px 0 4px; font-size: clamp(20px, 4vw, 23px); line-height: 1.35; color: #fff; }
.editor-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); padding: 3px; gap: 3px; border: 1px solid #ffffff12; border-radius: 10px; background: #080a11aa; }
.editor-auth-tabs button { min-height: 33px; border: 0; border-radius: 7px; background: transparent; color: #a9a5b8; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.editor-auth-tabs button.is-active { color: #fff; background: #46326b; box-shadow: 0 1px 8px #0005; }
.editor-google-auth { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; margin-top: 14px; border: 1px solid #5b526e; border-radius: 9px; background: #272332; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; transition: background .15s, border-color .15s; }
.editor-google-auth:hover { background: #332c43; border-color: #9d86cf; }
.editor-google-g { position: relative; width: 18px; height: 18px; display: block; border-radius: 50%; background: conic-gradient(from -40deg,#4285f4 0 25%,#34a853 0 45%,#fbbc05 0 68%,#ea4335 0 86%,#4285f4 0); }
.editor-google-g::after { content: ''; position: absolute; inset: 4.5px; border-radius: 50%; background: #272332; }
.editor-google-g::before { content: ''; position: absolute; z-index: 1; right: 0; top: 7px; width: 8px; height: 4px; background: #4285f4; }
.editor-auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: #827f92; font-size: 10px; white-space: nowrap; }
.editor-auth-divider::before, .editor-auth-divider::after { content: ''; height: 1px; flex: 1; background: #ffffff17; }
.editor-account-form { display: grid; gap: 10px; }
.editor-account-form > label:not(.editor-auth-remember) { display: grid; gap: 5px; color: #d5d0e1; font-size: 11px; font-weight: 700; }
.editor-account-form label[hidden] { display: none !important; }
.editor-account-form input[type=text], .editor-account-form input[type=email], .editor-account-form input[type=password] { width: 100%; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid #39384d; border-radius: 8px; outline: none; background: #0c0f18; color: #fff; font-family: inherit; font-size: 12px; font-weight: 500; direction: ltr; text-align: start; }
.editor-account-form input:focus { border-color: #a17cf4; box-shadow: 0 0 0 3px #8b5bdb24; }
.editor-auth-password { position: relative; display: block; }
.editor-auth-password input { padding-inline-end: 38px !important; }
.editor-auth-password button { position: absolute; inset-inline-end: 4px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #aaa5bd; cursor: pointer; font-size: 15px; }
.editor-auth-password button:hover { color: #fff; background: #ffffff10; }
.editor-auth-remember { display: flex; align-items: center; gap: 7px; width: fit-content; color: #aaa6b9; font-size: 11px; cursor: pointer; }
.editor-auth-remember input { width: 14px; height: 14px; margin: 0; accent-color: #9570ed; }
.editor-auth-captcha { min-height: 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.editor-auth-captcha:not(:has(iframe)) { min-height: 0; }
.editor-auth-error { margin: 0; padding: 8px 10px; border: 1px solid #df76814d; border-radius: 7px; background: #df768114; color: #ffb8c0; font-size: 11px; line-height: 1.5; }
.editor-auth-error[hidden] { display: none; }
.editor-auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 39px; margin-top: 2px; border: 0; border-radius: 8px; background: linear-gradient(105deg, #7654e9, #ad58d6); color: #fff; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-auth-submit:hover { filter: brightness(1.12); }
.editor-auth-submit:disabled { opacity: .6; cursor: progress; }
.export-footer-actions > .export-upgrade-trigger { min-width: 0; min-height: 34px; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0 8px; border: 0; border-radius: 8px; background: #7860df; color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.export-footer-actions > .export-upgrade-trigger:hover { background: #8c72f0; }
.editor-upgrade-dialog > h2 { margin: 8px 0 15px; font-size: 21px; }
.editor-upgrade-renewal-copy { margin: 0 4px 12px; color: #c9bfdd; font-size: 12px; line-height: 1.7; text-align: center; }
.editor-upgrade-table-wrap { max-height: min(52vh, 440px); overflow: auto; border: 1px solid #514462; border-radius: 5px; background: #151722; box-shadow: 0 8px 24px #05040b4d; scrollbar-color: #7961b5 transparent; scrollbar-width: thin; }
.editor-upgrade-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.editor-upgrade-table th, .editor-upgrade-table td { padding: 9px 10px; border-bottom: 1px solid #ffffff13; }
.editor-upgrade-table tr:last-child th, .editor-upgrade-table tr:last-child td { border-bottom: 0; }
.editor-upgrade-table thead th { position: sticky; top: 0; z-index: 1; background: #1b1b29; color: #e4dff0; font-size: 13px; font-weight: 800; text-align: center; line-height: 1.5; }
.editor-upgrade-table thead th:first-child { width: 31%; color: #a9a3b5; text-align: start; }
.editor-upgrade-table thead th:nth-child(2) { width: 34.5%; }
.editor-upgrade-table thead th:nth-child(3) { width: 34.5%; }
.editor-upgrade-table .editor-upgrade-pro-head { color: #f0dfff; background: #33243f; }
.editor-upgrade-spark { margin-inline-end: 4px; color: #e5aa66; }
.editor-upgrade-table tbody th { color: #d9d4e1; font-size: 12.5px; font-weight: 600; text-align: start; }
.editor-upgrade-table tbody th > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-upgrade-table tbody th small { display: block; margin-top: 2px; color: #a9a2ba; font-size: 10px; font-weight: 500; line-height: 1.4; }
.editor-upgrade-table tbody td { color: #eee9f6; font-size: 12px; text-align: center; }
.editor-upgrade-table tbody td:nth-child(2) { background: #ffffff04; }
.editor-upgrade-table tbody td:last-child { background: #7a4ec124; }
.editor-upgrade-table tr > :nth-child(n+2) { border-inline-start: 1px solid #ffffff12; }
.upgrade-feature-cell { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 19px; }
.editor-upgrade-table tbody td .upgrade-feature-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 12.5px; font-weight: 800; }
.upgrade-feature-mark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font: 800 12px/1 Arial, sans-serif; }
.upgrade-feature-mark.is-yes { color: #a4ebc8; background: #2b9c6730; }
.upgrade-feature-mark.is-no, .editor-upgrade-table tbody td:nth-child(2) .upgrade-feature-mark { color: #b8b4c3; background: #77738729; }
.editor-upgrade-duration { flex: 0 0 148px; min-width: 0; display: flex; align-items: center; }
.editor-upgrade-period-picker { position: relative; width: 100%; border: 1px solid #494156; border-radius: 9px; background: #181a24; }
.editor-upgrade-period-picker summary { min-height: 40px; padding: 0 8px; display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; align-items: center; gap: 5px; color: #f2ecfa; font-size: 11.5px; cursor: pointer; list-style: none; white-space: nowrap; }
.editor-upgrade-period-picker summary strong { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: #fff; font-size: 11.5px; text-align: center; }
.editor-upgrade-period-picker summary strong img { display: none; width: 14px; height: 14px; }
.editor-upgrade-period-picker summary strong.is-founder img { display: block; }
.editor-upgrade-period-picker summary:has(strong.is-intro) > span:first-child { display: none; }
.editor-upgrade-period-picker summary:has(strong.is-intro) { grid-template-columns: minmax(0, 1fr) 18px; }
.editor-upgrade-period-picker summary strong .period-selected-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-upgrade-period-picker summary::-webkit-details-marker { display: none; }
.editor-upgrade-period-picker summary:focus-visible { outline: 2px solid #a982f0; outline-offset: 2px; }
.editor-upgrade-chevron { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: #baabd3; background: #9873d21a; transition: transform .2s, background .2s; }
.editor-upgrade-chevron svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.editor-upgrade-period-picker summary:hover .editor-upgrade-chevron { background: #9873d238; }
.editor-upgrade-period-picker[open] .editor-upgrade-chevron { transform: rotate(180deg); }
.editor-upgrade-periods { position: absolute; inset-inline-start: 0; bottom: calc(100% + 5px); z-index: 3; width: 154px; padding: 4px; display: grid; gap: 2px; border: 1px solid #75618f; border-radius: 8px; background: linear-gradient(160deg, #292239, #1b1b2a 76%); box-shadow: 0 16px 34px #000b, inset 0 1px #ffffff18; }
.editor-period-option { min-height: 30px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 0; border-radius: 5px; background: transparent; color: #d6d0e2; font-family: inherit; cursor: pointer; }
.editor-period-option span { font-size: 11px; font-weight: 700; }
.editor-period-option-name { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.editor-period-option-name img { display: block; width: 14px; height: 14px; }
.editor-period-option[data-period="lifetime"] { color: #f4d8af; background: #9b6a3224; }
.editor-period-option[data-period="lifetime"][aria-checked=true] { color: #ffe0aa; background: #9b6a324a; }
.editor-period-option[data-period="intro"] { color: #d8cbff; background: #7854bb20; }
.editor-period-option[data-period="intro"][aria-checked=true] { color: #fff; background: #7854bb40; }
.editor-upgrade-periods:has([data-period="intro"]) { width: 184px; }
.editor-period-option b { color: #f4ebff; font-size: 11px; }
.editor-period-option:hover { background: #ffffff0d; }
.editor-period-option[aria-checked=true] { background: #7854bb34; color: #fff; }
.editor-upgrade-unavailable { padding: 10px; border: 1px solid #373347; border-radius: 9px; color: #aaa5b9; font-size: 12px; }
.editor-upgrade-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.editor-upgrade-payment-card { flex: 0 0 154px; min-width: 0; min-height: 42px; padding: 3px; border: 1px solid #494156; border-radius: 9px; background: #0d1019; }
.editor-upgrade-payment-card form { width: 100%; margin: 0; }
.editor-upgrade-payment-trigger { width: 100%; height: 34px; padding: 0; display: flex; align-items: center; gap: 3px; border: 0; border-radius: 7px; background: transparent; color: #d3b3ff; font-family: inherit; cursor: pointer; }
.editor-upgrade-payment-trigger strong { flex: 1 1 auto; min-width: 0; font-size: 16px; white-space: nowrap; text-align: center; }
.editor-upgrade-payment-trigger:hover:not(:disabled) { background: #8762d21a; }
.editor-upgrade-payment-trigger:focus-visible { outline: 2px solid #a982f0; outline-offset: 2px; }
.editor-upgrade-payment-trigger:disabled { color: #d3b3ff; cursor: not-allowed; }
.editor-upgrade-payment-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 7px; background: linear-gradient(105deg, #7758e8, #a958d9); color: #fff; font-size: 10px; font-weight: 800; }
.editor-upgrade-payment-trigger:disabled .editor-upgrade-payment-icon { background: #35313f; }
.editor-paypal-icon { width: 22px; height: 22px; }
.editor-upgrade-payment-card.is-guest { flex-basis: 184px; }
.editor-upgrade-payment-card.is-guest .editor-upgrade-payment-icon { width: 52px; flex-basis: 52px; }
.editor-upgrade-note { display: block; min-height: 19px; margin-top: 7px; color: #a8a0b5; font-size: 11px; text-align: center; }
.editor-auth-visually-hidden { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.editor-account-dialog { width:min(calc(100vw - 24px),400px); padding:17px 18px 19px; border-color:#3b354e; border-radius:16px; background:linear-gradient(155deg,#191626,#11131c 54%,#11141b); direction:inherit; }
.editor-account-dialog .editor-modal-head { min-height:27px; margin-bottom:11px; padding-bottom:11px; border-bottom:1px solid #ffffff17; }
.editor-account-brand { display:inline-flex; align-items:center; gap:8px; color:#f6f1ff; }
.editor-account-brand img { display:block; width:25px; height:25px; }
.editor-account-brand strong { font-size:14px; font-weight:800; line-height:1.2; }
.editor-account-dialog .editor-modal-close { width:28px; height:28px; border-color:#ffffff1f; border-radius:7px; background:#ffffff0d; font-size:18px; }
.editor-account-dialog .editor-auth-tabs { display:flex; gap:14px; padding:0; border:0; border-bottom:1px solid #ffffff20; border-radius:0; background:transparent; }
.editor-account-dialog .editor-auth-tabs button { position:relative; flex:1; min-height:38px; border-radius:0; background:transparent; color:#aaa4b8; font-size:13px; box-shadow:none; }
.editor-account-dialog .editor-auth-tabs button.is-active { color:#f5efff; background:transparent; box-shadow:none; }
.editor-account-dialog .editor-auth-tabs button.is-active::after { position:absolute; inset-inline:0; bottom:-1px; height:2px; border-radius:2px; background:linear-gradient(90deg,#8b68e9,#b278e2); content:""; }
.editor-account-dialog .editor-google-auth { min-height:40px; margin-top:13px; border-color:#494157; border-radius:8px; background:#24202e; font-size:12.5px; }
.editor-account-dialog .editor-google-auth:hover { border-color:#a78aec; background:#2b2438; }
.editor-account-dialog .editor-auth-divider { margin:11px 0 10px; color:#9690a4; font-size:11px; }
.editor-account-dialog .editor-account-form { gap:9px; }
.editor-account-dialog .editor-account-form>label:not(.editor-auth-remember) { gap:5px; color:#e1dbe9; font-size:12.5px; text-align:start; }
.editor-account-dialog .editor-account-form input[type=text],.editor-account-dialog .editor-account-form input[type=email],.editor-account-dialog .editor-account-form input[type=password] { height:40px; border-color:#403b51; border-radius:8px; background:#0c0e17; font-size:13px; text-align:center; }
.editor-account-dialog .editor-account-form input[type=text] { direction:inherit; }
.editor-account-dialog .editor-account-form input[type=email],.editor-account-dialog .editor-account-form input[type=password] { direction:ltr; }
.editor-account-dialog .editor-auth-password input { padding:0 42px !important; }
.editor-account-dialog .editor-account-form input:focus { border-color:#ab8df0; box-shadow:0 0 0 2px #8765d638; }
.editor-account-dialog .editor-auth-password button { top:4px; width:32px; height:32px; display:grid; place-items:center; padding:5px; }
.editor-account-dialog .editor-auth-password svg { width:19px; height:19px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.editor-account-dialog .editor-auth-password .editor-auth-eye-slash { display:none; }
.editor-account-dialog .editor-auth-password button.is-visible .editor-auth-eye-slash { display:block; }
.editor-account-dialog .editor-auth-remember { gap:7px; color:#c2bbce; font-size:12px; }
.editor-account-dialog .editor-auth-remember input { margin:0; }
.editor-account-dialog .editor-auth-captcha { padding:1px 0; }
.editor-account-dialog .editor-auth-submit { min-height:40px; margin-top:2px; border-radius:8px; font-size:13px; }
@media (max-width: 620px) {
  .editor-account-dialog { padding: 16px; }
  .editor-upgrade-dialog { padding: 16px 9px; }
  .editor-upgrade-dialog > h2 { margin: 8px 0 11px; }
  .editor-upgrade-table th, .editor-upgrade-table td { padding: 9px 5px; }
  .editor-upgrade-table thead th, .editor-upgrade-table tbody th { font-size: 11px; }
  .upgrade-feature-cell { grid-template-columns: 17px minmax(0, 1fr); gap: 4px; }
  .upgrade-feature-mark { width: 17px; height: 17px; font-size: 11px; }
}
@media (max-width: 420px) {
  .editor-upgrade-duration { flex-basis: 112px; }
  .editor-upgrade-period-picker summary > span:first-child { display: none; }
  .editor-upgrade-period-picker summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .editor-upgrade-periods { width: min(154px, calc(100vw - 36px)); }
  .editor-upgrade-payment-card { flex-basis: 128px; }
  .editor-upgrade-payment-trigger strong { font-size: 13px; }
  .editor-upgrade-payment-card.is-guest { flex-basis: 168px; }
}

