* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f1f3f8;
  color: #172449;
  font:
    14px Arial,
    sans-serif;
}
aside {
  position: fixed;
  width: 224px;
  inset: 0 auto 0 0;
  background: #104bdf;
  color: white;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  color: white;
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -1px;
}
.brand b {
  color: #ffe45e;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin: 12px 0 50px;
}
nav {
  display: grid;
  gap: 10px;
}
.nav {
  background: none;
  color: #cbd9ff;
  text-align: left;
  border: 0;
  padding: 15px;
}
.nav.selected {
  background: #fff2;
  color: white;
}
.asidefoot {
  margin-top: auto;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}
.asidefoot p {
  font-size: 12px;
  font-weight: 400;
  color: #cbd9ff;
  line-height: 1.8;
}
.asidefoot small {
  font-size: 10px;
  color: #b6c9fc;
}
main {
  margin-left: 224px;
  padding: 0 38px;
  max-width: 1800px;
}
header {
  height: 87px;
  border-bottom: 1px solid #dae0ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header span,
small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 26px;
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.04;
  margin: 14px 0 16px;
}
em {
  font-style: normal;
  color: #1552e8;
}
p {
  color: #78829a;
  line-height: 1.6;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #dce1ec;
  border-radius: 7px;
  background: white;
  color: #233458;
  padding: 12px 16px;
  font: 600 12px Arial;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.yellow {
  background: #ffe058;
  border-color: #ffe058;
  color: #172449;
}
.stat {
  background: #e7edff;
  border-radius: 12px;
  min-width: 180px;
  padding: 25px;
}
.stat strong {
  font-size: 55px;
  display: block;
  color: #1851dd;
  letter-spacing: -3px;
}
.stat span {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
#notice {
  font-size: 12px;
  min-height: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
}
.panel {
  background: linear-gradient(
    128deg,
    #fff 20%,
    #f8f9fb 49.5%,
    #e8ebef66 49.8%,
    white 50.1%,
    white 75%,
    #f9fafc
  );
  border: 1px solid #e0e5ee;
  border-radius: 13px;
  padding: 22px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
h2 {
  font-size: 14px;
  margin: 0;
}
.panelhead span {
  font-size: 10px;
  color: #7b87a0;
}
.panelhead p {
  font-size: 12px;
  margin-bottom: 0;
}
#drop {
  border: 1px dashed #b3c4ec;
  border-radius: 9px;
  text-align: center;
  padding: 26px 8px;
  background: #f3f6ff;
  cursor: pointer;
}
#drop b {
  display: block;
  font-size: 28px;
  color: #1958ed;
  margin-bottom: 10px;
}
#drop strong,
#drop span {
  display: block;
  font-size: 12px;
  margin: 7px;
}
#drop span {
  font-size: 11px;
  color: #8190b0;
}
#list {
  max-height: 420px;
  overflow: auto;
  margin-top: 15px;
}
.item {
  display: flex;
  text-align: left;
  align-items: center;
  width: 100%;
  margin: 8px 0;
  padding: 9px;
  gap: 10px;
}
.item.chosen {
  border-color: #2561ef;
  background: #edf2ff;
}
.item img {
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 5px;
}
.item div {
  min-width: 0;
}
.item b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  white-space: nowrap;
  max-width: 165px;
}
.item small {
  display: block;
  letter-spacing: 0;
  font-size: 10px;
  color: #8090ae;
  margin-top: 5px;
}
.editor {
  min-height: 490px;
}
#empty {
  text-align: center;
  padding: 88px 0;
}
#empty > span {
  font-size: 40px;
  color: #b3c7f8;
}
#empty h3 {
  font-size: 19px;
}
#empty p {
  font-size: 12px;
}
.imagebar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  word-break: break-all;
}
.imagebar img {
  width: 90px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
}
.imagebar p {
  font-size: 11px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
label span {
  color: #8b95a9;
  font-size: 10px;
  float: right;
}
input,
textarea,
select {
  font: 13px Arial;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #dce2ed;
  border-radius: 7px;
  background: #ffffffdf;
  color: #263554;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid #aac3ff;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.danger {
  color: #b85050;
  background: none;
  padding: 7px;
  border: 0;
}
.platforms {
  margin-top: 20px;
}
#platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
#platforms label {
  border: 1px solid #e0e5ef;
  border-radius: 7px;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
}
#platforms input {
  width: 14px;
  margin: 0;
  accent-color: #1552e8;
}
.hint {
  font-size: 10px;
  margin-top: 18px;
}
.settings {
  max-width: 650px;
  line-height: 1.6;
  margin-top: 24px;
}
.settings p {
  font-size: 13px;
}
#settings {
  padding-top: 40px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #8c96aa;
  font-size: 10px;
  padding: 28px 0;
}
button:focus-visible,
.button:focus-visible {
  outline: 3px solid #91b0ff;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  aside {
    width: 180px;
    padding: 26px 18px;
  }
  main {
    margin-left: 180px;
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: 260px 1fr;
  }
  #platforms {
    grid-template-columns: repeat(3, 1fr);
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
    display: block;
  }
  .brand span,
  .asidefoot {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 15px;
  }
  .nav {
    padding: 10px;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  header {
    height: 65px;
  }
  .intro {
    padding-top: 25px;
  }
  .stat {
    min-width: 90px;
    padding: 14px;
  }
  .stat strong {
    font-size: 35px;
  }
  .stat span {
    font-size: 7px;
  }
  h1 {
    font-size: 35px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  #list {
    max-height: 200px;
  }
  .editor {
    min-height: 350px;
  }
  #platforms {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    padding: 16px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
}

/* Compact controls and decorative sidebar */
.toolbar {
  align-items: center;
}
.toolbar > button,
.toolbar > .button {
  height: 42px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.sidebar-art {
  flex: 1;
  min-height: 140px;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px -8px;
}
.sidebar-art svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
}
.asidefoot {
  margin-top: auto;
}
.platforms {
  position: relative;
}
.platforms .panelhead {
  margin-bottom: 14px;
}
.platform-picker {
  position: relative;
  width: min(100%, 380px);
}
.platform-picker summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 12px 15px;
  border: 1px solid #ced8eb;
  border-radius: 8px;
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.platform-picker summary::-webkit-details-marker {
  display: none;
}
.platform-picker summary:focus-visible {
  outline: 3px solid #91b0ff;
}
.dropdown-arrow {
  font-size: 18px;
  color: #1552e8;
}
.platform-picker[open] .dropdown-arrow {
  transform: rotate(180deg);
}
.platform-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  background: white;
  border: 1px solid #dce3f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px #17244926;
  padding: 10px;
  z-index: 10;
  max-height: 340px;
  overflow: auto;
}
.menu-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8190ab;
  padding: 9px 10px;
}
#platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
#platforms label {
  border: 0;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
#platforms label:hover {
  background: #f0f4ff;
}
#platforms label:has(input:checked) {
  background: #edf2ff;
  color: #1552e8;
}
#platforms input {
  width: 15px;
  height: 15px;
}
.hint {
  margin-bottom: 0;
  line-height: 1.6;
}
@media (max-height: 760px) and (min-width: 761px) {
  .sidebar-art {
    min-height: 100px;
    margin: 12px 0;
  }
  .sidebar-art svg {
    max-height: 200px;
  }
  .asidefoot {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .sidebar-art {
    display: none;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar > button,
  .toolbar > .button {
    padding: 10px 12px;
  }
  .platform-picker {
    width: 100%;
  }
  .platform-menu {
    max-height: 280px;
  }
}

/* Prominent actions and upper-right export selection */
.blue {
  background: #1552e8;
  border-color: #1552e8;
  color: #fff;
}
#genone {
  background: #ffe058;
  border-color: #ffe058;
  color: #172449;
}
#genone:disabled {
  opacity: 1;
  background: #ffed9a;
  border-color: #f1d45f;
  color: #706338;
  cursor: not-allowed;
}
.workspace-controls {
  width: 255px;
  flex-shrink: 0;
  display: grid;
  gap: 13px;
}
.workspace-controls .stat {
  padding: 18px 22px;
}
.workspace-controls .stat strong {
  font-size: 46px;
}
.control-caption {
  display: block;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.4px;
  margin: 0 0 7px;
  color: #60708d;
}
.workspace-controls .platform-picker {
  width: 100%;
}
.workspace-controls .platform-menu {
  bottom: auto;
  top: calc(100% + 8px);
  max-height: 340px;
}
.intro {
  gap: 25px;
}
.sidebar-art {
  margin: 20px -9px;
  max-height: none;
  min-height: 120px;
}
.sidebar-art svg {
  max-height: 330px;
  width: 100%;
  height: 100%;
}
.platforms .panelhead {
  margin-bottom: 0;
}
@media (max-height: 760px) and (min-width: 761px) {
  .sidebar-art {
    margin: 12px 0;
  }
  .sidebar-art svg {
    max-height: 230px;
  }
}
@media (max-width: 760px) {
  .workspace-controls {
    width: 180px;
  }
  .workspace-controls .stat {
    padding: 14px;
  }
  .workspace-controls .stat strong {
    font-size: 35px;
  }
  .workspace-controls .platform-picker summary {
    padding: 10px;
    font-size: 12px;
  }
  .intro {
    gap: 15px;
    align-items: flex-start;
  }
  .workspace-controls .platform-menu {
    width: 240px;
    left: auto;
    right: 0;
  }
}
@media (max-width: 480px) {
  .intro {
    flex-direction: column;
  }
  .workspace-controls {
    width: 100%;
    grid-template-columns: 1fr 1.3fr;
    align-items: end;
    gap: 12px;
  }
  .workspace-controls .stat strong {
    font-size: 30px;
  }
  .workspace-controls .stat span {
    font-size: 7px;
  }
  .workspace-controls .platform-menu {
    width: 250px;
    max-width: calc(100vw - 32px);
  }
  .platform-control {
    padding-bottom: 2px;
  }
}

#videoPreview {
  width: 100%;
  max-height: 260px;
  background: #10182b;
  border-radius: 9px;
  margin-bottom: 10px;
}
#videoInfo {
  font-size: 11px;
  line-height: 1.6;
}
#frames {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 12px 0 18px;
}
#frames figure {
  margin: 0;
  flex: 0 0 80px;
}
#frames img {
  width: 80px;
  height: 53px;
  object-fit: cover;
  border-radius: 5px;
}
#frames figcaption {
  font-size: 9px;
  color: #78829a;
  margin-top: 4px;
}

/* Fill the sidebar between navigation and footer without distorting artwork. */
@media (min-width: 761px) {
  aside {
    overflow-y: auto;
  }
  .brand,
  nav,
  .asidefoot {
    flex-shrink: 0;
  }
  .sidebar-art {
    flex: 1 0 150px;
    min-height: 150px;
    max-height: none;
    margin: 22px -12px;
    background: #fff3c8 url("/sidebar-pattern.svg") center top / 100% auto repeat-y;
    border: 2px solid #172449;
    border-radius: 18px;
    display: block;
  }
  .asidefoot {
    margin-top: 0;
  }
  .brand span {
    margin-bottom: 32px;
  }
}

.credit-shop {
  margin-top: 28px;
  background: #142956;
  border: 1px solid #243e73;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 32px #17244916;
}
.credit-shop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.credit-shop-heading small {
  color: #a9bfff;
}
.credit-shop-heading h2 {
  font-size: 27px;
  color: white;
  margin-top: 10px;
}
.credit-shop-heading p {
  color: #d0dcf7;
  margin-bottom: 0;
}
.manual-tag {
  color: #ffe058;
  border: 1px solid #ffe05866;
  padding: 9px 12px;
  border-radius: 30px;
  font-size: 11px;
  white-space: nowrap;
}
.credit-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.credit-card {
  position: relative;
  background: #fff;
  border: 2px solid white;
  border-radius: 12px;
  padding: 30px 20px 20px;
  box-shadow: 0 8px 20px #0002;
  display: flex;
  flex-direction: column;
}
.credit-card small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #52627e;
}
.credit-card h3 {
  font-size: 20px;
  margin: 13px 0 20px;
}
.credit-card strong {
  color: #1552e8;
  font-size: 27px;
  letter-spacing: -1px;
}
.credit-card p {
  color: #32496d;
  margin: 12px 0;
}
.credit-card p b {
  font-size: 19px;
}
.credit-detail {
  font-size: 11px;
  color: #667793;
  margin-bottom: 24px;
}
.credit-card button {
  width: 100%;
  margin-top: auto;
  padding: 12px 8px;
}
.credit-card.creator {
  border-color: #7295ff;
}
.credit-card.pro {
  background: #fff8dc;
  border-color: #ffe058;
}
.credit-badge {
  position: absolute;
  top: -13px;
  left: 16px;
  background: #ffe058;
  color: #172449;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.credit-shop-note {
  color: #c6d3ed;
  font-size: 12px;
  max-width: 800px;
  margin: 22px 0 0;
}
.settings {
  max-width: none;
}
#packageDialog {
  background: white;
  color: #172449;
  border: 2px solid #1552e8;
  border-radius: 18px;
  padding: 32px;
  width: 460px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 25px 100px #0006;
}
#packageDialog::backdrop {
  background: #07162ecc;
  backdrop-filter: blur(5px);
}
#packageDialog h2 {
  font-size: 26px;
  margin-top: 14px;
}
#packageDialog p {
  color: #50617e;
}
#packageSummary {
  font-size: 20px;
  font-weight: 700;
  color: #1552e8 !important;
}
#packageDialog .dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  font-size: 22px;
  padding: 4px 10px;
}
#packageDialog .purchase-note {
  font-size: 11px;
  margin-bottom: 0;
}
#packageEmail {
  margin-top: 10px;
}
@media (max-width: 1200px) {
  .credit-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}
@media (max-width: 550px) {
  .credit-shop {
    padding: 22px 16px;
  }
  .credit-shop-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .credit-packages {
    grid-template-columns: 1fr;
  }
  .credit-card {
    padding: 26px 20px 20px;
  }
}
/* Equal inner artwork padding, including the lower edge. */
@media (min-width: 761px) {
  .sidebar-art {
    position: relative;
    background: #fff3c8;
    overflow: hidden;
  }
  .sidebar-art::before {
    content: "";
    position: absolute;
    inset: 0 0 10px;
    border-radius: 10px;
    background: url("/sidebar-pattern.svg") center top / 100% auto repeat-y;
  }
}
.nav[data-tab="settings"] {
  font-size: 11px;
  line-height: 1.6;
  padding: 12px 10px;
}
.credit-card strong {
  font-family:
    Arial Black,
    Arial,
    sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -1.2px;
  color: #1243c1;
}
.credit-wallet {
  flex-shrink: 0;
  min-width: 205px;
  border: 1px solid #6c89c2;
  background: #ffffff0c;
  border-radius: 12px;
  padding: 16px 18px;
  color: white;
}
.credit-wallet small {
  color: #bfcff2;
  font-size: 9px;
}
.credit-wallet strong {
  font-size: 32px;
  color: #ffe058;
  letter-spacing: -1px;
}
.credit-wallet > div {
  margin-top: 8px;
}
.credit-wallet span {
  font-size: 12px;
}
.credit-wallet p {
  font-size: 10px;
  margin: 7px 0 0;
  color: #cfdbf2;
}
.refresh-credits {
  padding: 4px 8px;
  margin-left: 8px;
  background: transparent;
  border-color: #a5b7dd;
  color: white;
  font-size: 18px;
}
.workspace-wallet {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  background: #142956;
  color: white;
  border-radius: 10px;
  padding: 13px 16px;
}
.workspace-wallet > span {
  font-size: 9px;
  letter-spacing: 1px;
  align-self: center;
}
.workspace-wallet > b {
  font-size: 24px;
  color: #ffe058;
}
.workspace-wallet > small {
  grid-column: 1/-1;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d1ddf7;
}
#apiSettingsForm {
  margin-bottom: 0;
}
#packageDialog {
  padding: 0;
  border: 0;
  width: 500px;
  overflow-x: hidden;
  max-height: calc(100dvh - 32px);
}
.purchase-hero {
  position: relative;
  overflow: hidden;
  background: #1552e8;
  color: white;
  padding: 30px;
}
.purchase-spark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #ffe058;
  color: #172449;
  border-radius: 14px;
  font-size: 30px;
  transform: rotate(-8deg);
  margin-bottom: 20px;
}
.purchase-hero small {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #dce5ff;
}
.purchase-hero h2 {
  color: white;
  font-size: 32px !important;
  margin-top: 12px !important;
}
.purchase-hero p {
  color: #e2eaff !important;
  margin-bottom: 0;
}
.purchase-decoration {
  position: absolute;
  font-size: 180px;
  color: #ffffff18;
  right: 15px;
  top: 36px;
  pointer-events: none;
}
#packageDialog .dialog-close {
  background: #ffffff20;
  color: white;
  border: 1px solid #ffffff55;
  right: 16px;
  top: 16px;
  z-index: 1;
}
.purchase-body {
  padding: 26px 30px;
}
.purchase-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f1f5ff;
  border: 1px solid #dce5ff;
  border-radius: 12px;
  padding: 18px;
}
.purchase-receipt small {
  display: block;
  color: #657795;
  font-size: 9px;
  letter-spacing: 1px;
}
#packagePrice {
  display: block;
  font:
    900 34px Arial Black,
    Arial,
    sans-serif;
  color: #1243c1;
  letter-spacing: -1.2px;
  margin-top: 7px;
}
#packageCreditCount {
  background: #ffe058;
  border-radius: 25px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
#packageSummary {
  font-size: 12px;
  font-weight: 400;
  color: #50617e !important;
  line-height: 1.6;
}
.purchase-steps {
  padding: 0;
  margin: 22px 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.purchase-steps li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.purchase-steps li > span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #eaf0ff;
  color: #1552e8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.purchase-steps b {
  font-size: 12px;
}
.purchase-steps p {
  font-size: 11px;
  margin: 4px 0 0;
  line-height: 1.5;
}
#packageEmail {
  display: block;
  text-align: center;
  padding: 15px;
  font-size: 13px;
}
.purchase-note {
  text-align: center;
  line-height: 1.6;
}
#packageDialog[open] {
  animation: purchase-in 0.18s ease-out;
}
@keyframes purchase-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #packageDialog[open] {
    animation: none;
  }
}
@media (max-width: 550px) {
  .credit-wallet {
    width: 100%;
  }
  .purchase-hero {
    padding: 24px;
  }
  .purchase-body {
    padding: 20px;
  }
  #packagePrice {
    font-size: 28px;
  }
  .purchase-receipt {
    padding: 13px;
  }
  .workspace-wallet {
    grid-column: 1/-1;
  }
  .credit-card strong {
    font-size: 32px;
  }
}

/* Make the entry package immediately recognizable to first-time buyers. */
.credit-card.starter {
  background: #ffe058;
  border: 2px solid #ffe058;
  box-shadow:
    0 0 0 4px #ffe05826,
    0 12px 28px #0003;
}
.credit-card.starter .starter-badge {
  background: #142956;
  color: #fff;
  border: 1px solid #ffe058;
  letter-spacing: 1px;
  padding: 8px 12px;
}
.credit-card.starter small {
  color: #39456a;
  font-weight: 800;
}
.credit-card.starter h3 {
  font-size: 25px;
  color: #142956;
}
.credit-card.starter strong {
  color: #142956;
}
.credit-card.starter p,
.credit-card.starter .credit-detail {
  color: #27395c;
}
.credit-card.starter .credit-detail {
  font-weight: 600;
}
.credit-card.starter button {
  background: #142956;
  border-color: #142956;
  color: white;
  font-size: 12px;
  padding: 14px 8px;
  box-shadow: 0 4px 0 #14295622;
}
.credit-card.starter button:hover {
  background: #203d76;
  filter: none;
}
.credit-card.starter button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
/* Separate the first purchase from recurring credit refills. */
.credit-shop {
  padding: 30px;
}
.credit-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trial-offer {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 20px 22px;
  background: #203965;
  border: 1px solid #6582b5;
  border-radius: 14px;
  color: white;
}
.trial-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffe058;
  color: #142956;
  font-size: 29px;
}
.trial-offer small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #c6d6f7;
}
.trial-offer h3 {
  font-size: 21px;
  margin: 6px 0;
}
.trial-offer p {
  color: #c7d6ef;
  font-size: 11px;
  margin: 0;
}
.trial-offer button {
  padding: 14px 18px;
  white-space: nowrap;
}
.trial-offer button span {
  margin-left: 12px;
}
#trialMessage {
  grid-column: 2/-1;
  font-size: 10px;
  line-height: 1.5;
}
.starter-spotlight {
  display: grid;
  grid-template-columns: 1fr 260px;
  border: 1px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px #0002;
}
.starter-info {
  padding: 30px;
  background: radial-gradient(circle at 100% 100%, #fff2b2, transparent 65%), #fff;
}
.starter-eyebrow {
  display: inline-block;
  background: #ffe058;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #142956;
  box-shadow: 0 4px 12px #ffc80055;
}
.starter-info h3 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 18px 0 14px;
  color: #142956;
}
.starter-info p {
  font-size: 12px;
  color: #596c88;
  margin: 0;
  line-height: 1.7;
}
.starter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 23px;
  font-size: 11px;
  font-weight: 700;
  color: #263f65;
}
.starter-benefits span::first-letter {
  color: #1552e8;
}
.starter-purchase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: #f0f4ff;
  border-left: 1px solid #dde5f5;
}
.starter-purchase > small {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #5a6f92;
}
.starter-purchase > strong {
  font:
    900 38px Arial Black,
    Arial,
    sans-serif;
  letter-spacing: -1.7px;
  color: #142956;
  margin-top: 16px;
}
.starter-purchase > p {
  font-size: 12px;
  color: #52688b;
  margin: 9px 0 22px;
}
.starter-purchase button {
  font-size: 13px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px #1552e826;
}
.starter-purchase .starter-caption {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0;
  margin-top: 12px;
}
.refill-heading {
  color: #fff;
  margin: 26px 0 28px;
}
.refill-heading h3 {
  font-size: 17px;
  margin: 0 0 7px;
}
.refill-heading p {
  font-size: 12px;
  color: #bfcfea;
  margin: 0;
}
.credit-card h3 {
  margin-bottom: 16px;
}
.credit-card {
  padding: 27px 20px 20px;
}
.credit-shop-heading {
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .starter-spotlight {
    grid-template-columns: 1fr 220px;
  }
  .starter-info {
    padding: 25px;
  }
  .starter-purchase {
    padding: 24px;
  }
  .starter-purchase > strong {
    font-size: 33px;
  }
  .credit-card strong {
    font-size: 27px;
  }
  .trial-offer {
    grid-template-columns: 1fr auto;
  }
  .trial-symbol {
    display: none;
  }
  #trialMessage {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .credit-shop {
    padding: 22px 18px;
  }
  .credit-packages {
    grid-template-columns: 1fr;
  }
  .starter-spotlight {
    grid-template-columns: 1fr;
  }
  .starter-purchase {
    border-left: 0;
    border-top: 1px solid #dde5f5;
  }
  .starter-info h3 {
    font-size: 29px;
  }
  .trial-offer {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .trial-offer button {
    margin-top: 9px;
  }
  .credit-packages {
    gap: 27px;
  }
  .credit-card strong {
    font-size: 32px;
  }
  .starter-purchase > strong {
    font-size: 38px;
  }
}

/* A compact wallet with a clear balance, unit and quiet refresh action. */
.credit-wallet {
  min-width: 235px;
  background: linear-gradient(135deg, #2c4779, #1d3460);
  border: 1px solid #738ec159;
  border-radius: 16px;
  padding: 17px 20px;
  box-shadow: 0 8px 24px #06153126;
  position: relative;
  overflow: hidden;
}
.credit-wallet .wallet-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.wallet-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #ffe058;
  border-radius: 8px;
  color: #142956;
  font-size: 19px;
}
.credit-wallet .wallet-top small {
  color: #d4e1fc;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.credit-wallet .refresh-credits {
  margin-left: auto;
  border: 0;
  background: #ffffff10;
  color: #dbe6ff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 18px;
}
.credit-wallet .wallet-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 17px 0 15px;
}
.credit-wallet .wallet-amount strong {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.8px;
  color: #ffe058;
}
.credit-wallet .wallet-amount span {
  font-size: 12px;
  color: #d1def7;
}
.credit-wallet .wallet-status {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #ffffff18;
  margin: 0;
}
.wallet-status > span {
  width: 5px;
  height: 5px;
  background: #a8c5ff;
  border-radius: 50%;
  flex-shrink: 0;
}
.credit-wallet .wallet-status p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #b8c9e8;
}
#welcomeDialog {
  padding: 0;
  border: 1px solid #ffffff80;
  border-radius: 24px;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #172449;
  background: white;
  box-shadow: 0 30px 100px #07162e66;
}
#welcomeDialog::backdrop {
  background: #07162ec4;
  backdrop-filter: blur(6px);
}
.welcome-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  color: white;
  border-color: #ffffff40;
  background: #ffffff15;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 23px;
  border-radius: 50%;
}
.welcome-art {
  height: 136px;
  background: #1552e8;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 30px;
}
.welcome-star {
  font-size: 88px;
  color: #ffe058;
  line-height: 1;
  transform: rotate(-12deg);
  z-index: 1;
}
.welcome-orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 32px solid #ffffff12;
  border-radius: 50%;
  right: -30px;
  top: -65px;
}
.welcome-pill {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: white;
  border: 1px solid #ffffff55;
  border-radius: 30px;
  padding: 10px 13px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.welcome-content {
  padding: 30px;
}
.welcome-content > small {
  color: #637ba0;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.welcome-content h2 {
  font-size: 33px;
  letter-spacing: -1.3px;
  line-height: 1.1;
  margin: 12px 0 16px;
}
.welcome-content > p {
  font-size: 13px;
  line-height: 1.65;
  color: #64738d;
}
.welcome-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.welcome-options > div {
  background: #f2f5fb;
  border: 1px solid #e4eaf5;
  border-radius: 11px;
  padding: 14px;
}
.welcome-options span {
  font-size: 10px;
  color: #1552e8;
  font-weight: 800;
}
.welcome-options p {
  font-size: 11px;
  line-height: 1.6;
  color: #6d7c94;
  margin: 8px 0 0;
}
.welcome-options b {
  display: block;
  color: #223656;
  font-size: 12px;
  margin-bottom: 4px;
}
#welcomeExplore {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 13px;
  border-radius: 9px;
}
#welcomeSkip {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #63738d;
  padding: 10px;
}
#welcomeDialog .welcome-note {
  font-size: 10px;
  text-align: center;
  line-height: 1.5;
  margin: 9px 0 0;
  color: #7a879c;
}
@media (max-width: 550px) {
  .welcome-content {
    padding: 24px;
  }
  .welcome-content h2 {
    font-size: 29px;
  }
  .welcome-art {
    height: 115px;
    padding: 24px;
  }
  .welcome-pill {
    right: 20px;
    bottom: 24px;
    font-size: 8px;
    padding: 8px;
  }
  .welcome-options {
    gap: 8px;
  }
  .welcome-options > div {
    padding: 12px;
  }
  .credit-wallet {
    min-width: 0;
  }
}
#export:disabled {
  opacity: 1;
  background: #e7ebf2;
  border-color: #d8deea;
  color: #7a879e;
  cursor: not-allowed;
  box-shadow: none;
}
.export-access-notice {
  margin: 16px 0 0;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef3ff;
  color: #395780;
  line-height: 1.6;
}
/* Clearer, larger welcome copy with a lighter backdrop. */
#welcomeDialog {
  width: 680px;
}
#welcomeDialog::backdrop {
  background: #101d385e;
  backdrop-filter: blur(1px);
}
#packageDialog::backdrop {
  background: #101d3873;
  backdrop-filter: blur(1px);
}
.welcome-art {
  height: 106px;
  padding: 25px 36px;
}
.welcome-star {
  font-size: 68px;
}
.welcome-pill {
  font-size: 11px;
  right: 36px;
  bottom: 32px;
}
.welcome-content {
  padding: 32px 36px;
}
.welcome-content > small {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #536c94;
}
.welcome-content h2 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 16px 0 18px;
}
.welcome-content > p {
  font-size: 16px;
  line-height: 1.65;
  color: #4c5e7c;
}
.welcome-options {
  margin: 24px 0;
  gap: 16px;
}
.welcome-options > div {
  padding: 20px;
  border-radius: 13px;
}
.welcome-options > div.welcome-trial {
  background: #fff8dc;
  border-color: #f1d77b;
}
.welcome-options span {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #536b8f;
}
.welcome-options b {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  color: #173d83;
}
.welcome-options p {
  font-size: 14px;
  line-height: 1.6;
  color: #50617d;
}
.welcome-options .welcome-trial b {
  color: #172449;
}
#welcomeExplore {
  background: #1552e8;
  border-color: #1552e8;
  font-size: 18px;
  font-weight: 800;
  padding: 19px 22px;
  box-shadow: 0 6px 16px #1552e824;
}
#welcomeExplore span {
  font-size: 24px;
  line-height: 20px;
}
.welcome-content > .welcome-next {
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  margin: 12px 6px 0;
  color: #63738d;
}
#welcomeSkip {
  font-size: 13px;
  padding: 10px;
  margin-top: 4px;
}
#welcomeDialog .welcome-note {
  font-size: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #e5eaf2;
  color: #65748c;
}
.welcome-close {
  width: 36px;
  height: 36px;
  font-size: 25px;
}
@media (max-width: 550px) {
  .welcome-art {
    height: 88px;
    padding: 20px 24px;
  }
  .welcome-star {
    font-size: 54px;
  }
  .welcome-pill {
    font-size: 8px;
    right: 24px;
    bottom: 26px;
  }
  .welcome-content {
    padding: 25px 24px;
  }
  .welcome-content h2 {
    font-size: 31px;
  }
  .welcome-content > p {
    font-size: 15px;
  }
  .welcome-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .welcome-options > div {
    padding: 16px;
  }
  .welcome-options b {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .welcome-options p {
    font-size: 14px;
  }
  #welcomeExplore {
    font-size: 16px;
    padding: 17px 18px;
  }
}
/* Bold, contrasting welcome choices in the EasyDesc palette. */
.welcome-options > div {
  position: relative;
  overflow: hidden;
  background: #1552e8;
  border: 1px solid #1552e8;
  box-shadow: 0 7px 18px #1552e81c;
  padding: 22px;
}
.welcome-options > div::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -32px;
  top: -32px;
  border: 15px solid #ffffff15;
  border-radius: 50%;
  pointer-events: none;
}
.welcome-options > div.welcome-trial {
  background: #ffe058;
  border: 1px solid #e5bf2b;
  box-shadow: 0 7px 18px #c49b231a;
}
.welcome-options .welcome-trial::after {
  border-color: #ffffff45;
}
.welcome-options span {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: #e0e9ff;
  font-weight: 800;
}
.welcome-options b {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.welcome-options p {
  color: #e6edff;
  font-size: 14px;
}
.welcome-options .welcome-trial span {
  color: #4a4327;
}
.welcome-options .welcome-trial b {
  color: #142956;
}
.welcome-options .welcome-trial p {
  color: #343d55;
}
.welcome-options .welcome-trial .free-signup-copy {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #263451;
}
.trial-offer .trial-signup-copy {
  font-size: 13px;
  font-weight: 700;
  color: #ffe058;
  letter-spacing: 0.3px;
  line-height: 1.6;
  margin: 6px 0;
}

/* ---- v17: tambahan review ---- */
label span span {
  float: none;
  font-size: inherit;
}
label .warn,
#kwcount.warn {
  color: #b5541c;
  font-weight: 700;
}
#drop.dragging,
#drop:focus-visible {
  border-color: #1552e8;
  border-style: solid;
  background: #e7edff;
}
.confirm-dialog {
  border: 2px solid #1552e8;
  border-radius: 14px;
  padding: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  color: #172449;
  background: #fff;
  box-shadow: 0 25px 80px #0005;
}
.confirm-dialog::backdrop {
  background: #07162eb3;
}
.confirm-dialog p {
  color: #172449;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 20px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-actions .danger {
  background: #fdecec;
  border: 1px solid #f3c4c4;
  padding: 12px 16px;
}
.purchase-contact {
  font-size: 12px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.purchase-contact b {
  color: #172449;
  user-select: all;
}
.copy-address {
  padding: 5px 10px;
  margin-left: 6px;
  font-size: 11px;
}

.notice-dialog {
  border: 0;
  border-radius: 18px;
  padding: 30px;
  width: 460px;
  max-width: calc(100vw - 32px);
  color: #172449;
  background: #fff;
  box-shadow: 0 25px 90px #07162e66;
}
.notice-dialog::backdrop {
  background: #101d3873;
}
.notice-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #ffe058;
  color: #142956;
  font-size: 28px;
  transform: rotate(-8deg);
  margin-bottom: 18px;
}
.notice-dialog small {
  color: #536c94;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.notice-dialog h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 10px 0 14px;
  color: #142956;
}
.notice-dialog p {
  color: #4c5e7c;
  font-size: 14px;
  margin: 0 0 12px;
}
.notice-dialog p b {
  color: #142956;
}
.notice-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.notice-actions .blue {
  font-size: 13px;
  padding: 13px 18px;
}
.notice-actions .blue span {
  margin-left: 8px;
}

/* ---- Akun & pembayaran ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-btn {
  background: #fff;
  border-color: #c9d6f2;
  color: #1552e8;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-btn.signed-in {
  background: #e7edff;
  border-color: #e7edff;
  color: #142956;
}
.auth-dialog {
  padding: 0;
  border: 0;
  border-radius: 20px;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #172449;
  background: #fff;
  box-shadow: 0 25px 90px #07162e66;
}
.auth-dialog::backdrop {
  background: #101d3880;
  backdrop-filter: blur(2px);
}
.auth-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  background: #ffffff20;
  border-color: #ffffff55;
  color: #fff;
}
.auth-hero {
  background: #1552e8;
  color: #fff;
  padding: 28px 30px 24px;
}
.auth-hero small {
  color: #ffe058;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.auth-hero h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 10px 40px 10px 0;
}
.auth-hero p {
  color: #dfe8ff;
  font-size: 13px;
  margin: 0;
}
.auth-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.auth-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #c9d8ff;
  background: #ffffff14;
  border-radius: 30px;
  padding: 6px 11px 6px 6px;
}
.auth-steps li span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff26;
  font-size: 10px;
}
.auth-steps li.current {
  background: #ffe058;
  color: #142956;
}
.auth-steps li.current span {
  background: #142956;
  color: #fff;
}
.auth-body {
  padding: 22px 30px 26px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef2fa;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  color: #5a6b88;
  padding: 10px;
  font-size: 13px;
}
.auth-tabs button[aria-selected="true"] {
  background: #fff;
  color: #142956;
  box-shadow: 0 2px 6px #14295618;
}
.google-gis {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.google-gis[hidden] {
  display: none;
}
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  font-size: 13px;
  border-color: #cfd8ea;
}
.google-g {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #1552e8;
  color: #1552e8;
  font-weight: 800;
  font-size: 12px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #8a96ad;
  font-size: 11px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e7f1;
}
#authForm label {
  margin-bottom: 12px;
}
#authForm input {
  margin-top: 6px;
}
.auth-error {
  color: #b23b3b;
  font-size: 12px;
  min-height: 18px;
  margin: 4px 0 8px;
}
.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  margin: 14px 0 0;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: #1552e8;
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
}
.auth-demo-note {
  text-align: center;
  font-size: 11px;
  color: #8a6d12;
  background: #fff6d6;
  border-radius: 8px;
  padding: 8px;
  margin: 12px 0 0;
}
.purchase-steps li.done > span {
  background: #1552e8;
  color: #fff;
}
.purchase-steps strong {
  color: #142956;
  overflow-wrap: anywhere;
}
.pay-methods {
  border: 0;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.pay-methods label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce3f0;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.pay-methods label:has(input:checked) {
  border-color: #1552e8;
  background: #eef3ff;
  box-shadow: 0 0 0 1px #1552e8;
}
.pay-methods input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1552e8;
  flex-shrink: 0;
}
.pay-methods label > span {
  float: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #142956;
  font-size: 12px;
}
.pay-methods small {
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11px;
  color: #6a7a96;
}
/* Biaya admin per metode: hijau bila gratis */
.pay-fee {
  margin-left: auto;
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  font-weight: bold;
  color: #6a7a96;
  text-align: right;
}
.pay-fee.free {
  color: #13804a;
}
.fee-note {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #50607e;
}
.pay-hint {
  font-size: 12px;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff6d6;
  color: #6b5510 !important;
}
.pay-hint.ready {
  background: #e9f7ee;
  color: #1d6b3a !important;
}
#packageEmail.is-disabled {
  background: #eceff5;
  border-color: #eceff5;
  color: #8a94a8;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .header-actions {
    gap: 6px;
  }
  .account-btn,
  .header-actions .blue {
    padding: 9px 10px;
    font-size: 11px;
  }
  .account-btn {
    max-width: 130px;
  }
}
@media (max-width: 480px) {
  header > span {
    display: none;
  }
  header {
    justify-content: flex-end;
  }
}
.purchase-steps li > div {
  flex: 1;
  min-width: 0;
}

.pay-now {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
}
.pay-now.is-disabled {
  background: #eceff5;
  border-color: #eceff5;
  color: #8a94a8;
  cursor: not-allowed;
}
#packageDialog .purchase-note {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
#packageDialog .purchase-note b {
  color: #172449;
  user-select: all;
}
.payment-dialog .notice-symbol {
  font-weight: 800;
}

/* ---- Kategori platform & cek ketentuan ---- */
.category-box {
  border: 1px solid #dce3f0;
  border-radius: 10px;
  padding: 12px 14px 4px;
  margin: 0 0 14px;
  background: #fafbff;
}
.category-box legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}
.category-box legend small {
  font-weight: 400;
  letter-spacing: 0;
  color: #7b87a0;
  margin-left: 4px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.category-grid label {
  margin-bottom: 10px;
  font-size: 11px;
}
.category-grid select {
  margin-top: 6px;
  padding: 9px 10px;
  font-size: 12px;
}
.cat-hint {
  font-size: 10px;
  margin: 0 0 10px;
}
@media (max-width: 760px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}
.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.compliance:empty {
  display: none;
}
.compliance-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #dce3f0;
  border-left-width: 4px;
  background: #fff;
  font-size: 11px;
  color: #50617d;
}
.compliance-row b {
  font-size: 12px;
  color: #172449;
}
.compliance-row.good {
  border-left-color: #2f9e5b;
}
.compliance-row.warn {
  border-left-color: #e0a419;
}
.compliance-row.bad {
  border-left-color: #d24a4a;
}
.check-dialog {
  width: 620px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.check-list section {
  border-top: 1px solid #e5eaf2;
  padding-top: 10px;
  margin-top: 10px;
}
.check-list h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #142956;
}
.check-list ul {
  margin: 0;
  padding-left: 18px;
}
.check-list li {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 4px;
  color: #4c5e7c;
  overflow-wrap: anywhere;
}
.check-list li.bad::marker {
  color: #d24a4a;
}
.check-list li.warn::marker {
  color: #e0a419;
}
.check-list li b {
  color: #172449;
}
.check-note {
  font-size: 12px !important;
  background: #fff6d6;
  border-radius: 6px;
  padding: 6px 8px;
}

/* Dropdown platform ekspor di samping tombol Generate metadata.
   Tombol Generate tetap di posisi semula (kanan baris judul) di semua ukuran layar;
   kotak platform berukuran tetap, pindah ke baris sendiri bila tidak muat. */
.editor {
  container-type: inline-size;
}
.editor .panelhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "title picker gen";
  align-items: center;
  gap: 10px;
}
.editor .panelhead h2 {
  grid-area: title;
}
.editor-actions {
  display: contents;
}
.editor-actions .platform-control {
  grid-area: picker;
  justify-self: end;
  width: 210px;
  max-width: 100%;
}
.editor-actions #genone {
  grid-area: gen;
}
.editor-actions .platform-picker {
  width: 100%;
}
.editor-actions .platform-picker summary {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 12px;
}
.editor-actions .platform-menu {
  top: calc(100% + 8px);
  bottom: auto;
  left: auto;
  right: 0;
  width: 250px;
  max-width: calc(100vw - 48px);
  max-height: 340px;
  z-index: 20;
}
@container (max-width: 560px) {
  .editor .panelhead {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title gen"
      "picker picker";
  }
  .editor-actions .platform-control {
    justify-self: start;
  }
  .editor-actions .platform-menu {
    left: 0;
    right: auto;
  }
}

/* Ringkasan platform: nama dipisah koma sampai muat */
.platform-picker summary #platformSummary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-picker summary .dropdown-arrow {
  flex-shrink: 0;
}

/* Paket Starter hilang setelah dimiliki */
.for-owner {
  display: none;
}
.starter-owned .for-owner {
  display: block;
}
.starter-owned .for-new {
  display: none;
}
.starter-owned .refill-heading {
  margin-top: 0;
}

/* Jumlah kata kunci, di samping Generate semua */
.toolbar > .kw-limit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0;
  padding: 0 6px 0 12px;
  border: 1px solid #dce1ec;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #233458;
  white-space: nowrap;
}
.toolbar > .kw-limit select {
  width: auto;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  background: #eef2fb;
  font-weight: 700;
  color: #1552e8;
  cursor: pointer;
}

/* Pilihan bahasa */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #c9d6f2;
  border-radius: 8px;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #6a7a96;
  border-radius: 6px;
}
.lang-switch button.active {
  background: #1552e8;
  color: #fff;
}
@media (max-width: 760px) {
  .lang-switch button {
    padding: 6px 8px;
  }
}

.welcome-content {
  position: relative;
}
.welcome-lang {
  position: absolute;
  top: 26px;
  right: 30px;
}
@media (max-width: 550px) {
  .welcome-lang {
    top: 20px;
    right: 22px;
  }
}

/* Hak cipta */
footer {
  gap: 12px;
  flex-wrap: wrap;
}
footer .copyright {
  font-size: 11px;
  color: #6f7b93;
}
footer .copyright b {
  color: #1552e8;
}
footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 11px;
}
footer .legal-links a {
  color: #6f7b93;
}
footer .legal-links a:hover {
  color: #1552e8;
}

/* Biaya Generate */
.cost-panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cost-grid > div {
  background: #eef3ff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cost-grid strong {
  font-size: 30px;
  color: #1552e8;
  letter-spacing: -1px;
}
.cost-grid span {
  font-size: 12px;
  font-weight: 600;
  color: #33476a;
}
@media (max-width: 600px) {
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

.auth-forgot {
  display: block;
  margin: -4px 0 6px auto;
  font-size: 11px;
}
.auth-info:empty {
  display: none;
}
.auth-info {
  font-size: 12px;
  line-height: 1.5;
  color: #1d6b3a;
  background: #e9f7ee;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
