.maker-page {
  --maker-primary: #2287ee;
  --maker-primary-dark: #166cc0;
  --maker-page-bg: #eef1f5;
  background: var(--maker-page-bg);
  min-height: 100vh;
  margin: 0;
  font-family: "Arimo", Arial, sans-serif;
  color: #202532;
}

.maker-page .yoyoo-page,
.maker-page .yoyoo-body-wrap,
.maker-page .yoyoo-main {
  background: var(--maker-page-bg);
}

.maker-page button,
.maker-page input,
.maker-page textarea,
.maker-page select {
  font-family: "Arimo", Arial, sans-serif;
  font-size: inherit;
}

.maker-top {
  background: #fff;
  border-bottom: 1px solid #e2e6ec;
  padding: 12px 16px;
}

.maker-page .maker-top {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #fff;
}

.maker-page .maker-top-shell {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  direction: ltr;
}

.maker-page .maker-top-spacer {
  flex: 0 0 160px;
  width: 160px;
}

.maker-page .maker-panel ins.adsbygoogle,
.maker-page .maker-creator iframe[src*="googlesyndication"],
.maker-page .maker-creator iframe[src*="doubleclick"],
.maker-page .maker-creator .google-auto-placed {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.maker-content-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1310px;
  margin: 24px auto 36px;
  padding: 0 12px;
  box-sizing: border-box;
  direction: ltr;
}

.maker-content-row .maker-wrap {
  margin: 0;
  flex: 0 1 auto;
  direction: rtl;
}

.maker-content-row .yoyoo-ad-side {
  position: static;
  flex: 0 0 auto;
  width: auto;
  height: 600px;
  top: auto;
  margin: 0;
}

.maker-content-row .yoyoo-ad-left ins.adsbygoogle {
  display: inline-block !important;
  width: 160px;
  height: 600px;
  margin-right: 70px;
  margin-left: 0;
}

.maker-content-row .yoyoo-ad-right ins.adsbygoogle {
  display: inline-block !important;
  width: 160px;
  height: 600px;
  margin-left: 70px;
  margin-right: 0;
}

.maker-top-inner {
  flex: 0 1 850px;
  width: 100%;
  max-width: 850px;
  margin: 0;
  display: grid;
  grid-template-columns: 360px 470px;
  gap: 20px;
  direction: ltr;
  align-items: center;
}

.maker-brand {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
  text-align: center;
}

.maker-heading {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--maker-primary);
}

.maker-brand-sub {
  margin: 0;
  color: #727987;
  font-size: 14px;
  text-align: center;
}

.login-notice {
  grid-column: 1;
  grid-row: 1;
  direction: rtl;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  background: #fcfdff;
  border: 2px solid #4a9fff;
  border-radius: 16px;
  text-align: center;
}

.notice-text {
  margin: 0 0 12px;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.notice-text-sub {
  margin-top: -6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.notice-links {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 11px;
  white-space: nowrap;
  margin: 0;
  font-size: inherit;
}

.notice-links a {
  color: #006fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.notice-links a:hover {
  color: #004fc2;
  text-decoration: underline;
}

.notice-links .separator {
  color: #718096;
  font-size: 13px;
}

.edit-votes-notice {
  width: min(850px, calc(100% - 24px));
  margin: 20px auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a5a12;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 6px 18px rgba(122, 90, 18, .08);
}

.maker-wrap {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 24px auto 36px;
  padding: 0;
  display: grid;
  grid-template-columns: 470px 360px;
  gap: 14px 20px;
  justify-content: center;
  align-items: start;
}

.maker-panel {
  background: #fff;
  border-radius: 17px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.maker-section-title {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 800;
}

.field {
  margin-bottom: 12px;
  max-width: 350px;
  margin-left: auto;
}

.field label,
.field-small-label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.field-small-label {
  text-align: right;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111827;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e2e6ec;
  border-radius: 9px;
  padding: 8px 9px;
  background: #fff;
  color: #202532;
  outline: none;
  font-size: 14px;
  transition: .2s;
}

.field textarea { min-height: 54px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--maker-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--maker-primary) 11%, transparent);
}

.option-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 285px) 32px;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}

.option-num {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: color-mix(in srgb, var(--maker-primary) 10%, #fff);
  color: var(--maker-primary);
}

.option-row input {
  width: 100%;
  border: 1px solid #e2e6ec;
  border-radius: 9px;
  padding: 8px 9px;
  font-size: 14px;
}

.remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.add-option {
  width: 350px;
  max-width: 100%;
  border: 1px dashed color-mix(in srgb, var(--maker-primary) 45%, #fff);
  background: color-mix(in srgb, var(--maker-primary) 5%, #fff);
  color: var(--maker-primary);
  border-radius: 9px;
  padding: 9px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.color-picks {
  width: 316px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 28px);
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin: 0 auto;
}

.color-picks .color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #cfd4dc;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.color-picks .color.active { box-shadow: 0 0 0 2px #111827; }

.color-picks .color.color-rainbow {
  background: conic-gradient(
    from 135deg,
    #2287ee 0deg,
    #ff7a35 60deg,
    #7b61ff 120deg,
    #00a78e 180deg,
    #e24a86 240deg,
    #facc15 300deg,
    #2287ee 360deg
  ) !important;
  position: relative;
}

.color-picks .color.color-rainbow.active {
  box-shadow: 0 0 0 2px #111827, 0 0 0 4px #fff;
}

.custom-color-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  font-size: 12px;
  color: #727987;
  text-align: center;
}

.custom-color {
  width: 34px !important;
  height: 30px;
  padding: 2px !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.maker-note {
  max-width: 350px;
  margin: 10px 0 10px auto;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e6ec;
  font-size: 12px;
  color: #526174;
  line-height: 1.5;
}

.actions {
  margin-top: 14px;
  max-width: 350px;
  margin-left: auto;
}

.maker-creator .actions + .field {
  margin-top: 18px;
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 900;
  background: var(--maker-primary);
  color: #fff;
  cursor: pointer;
}

.primary:hover { background: var(--maker-primary-dark); }
.primary:disabled { opacity: .7; cursor: wait; }

.preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.preview-title h2 {
  margin: 0;
  font-size: 18px;
}

.preview-title span {
  color: #727987;
  font-size: 11px;
}

.maker-preview-card {
  display: block !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
}

.maker-preview-card .poll-question {
  margin: 6px 0 15px;
  font-size: 18px;
  font-weight: 800;
}

.maker-preview-card #previewOptions {
  display: contents;
}

.generated {
  max-width: 350px;
  margin: 12px 0 0 auto;
  padding: 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e6ec;
  word-break: break-all;
  font-size: 12px;
  color: #334155;
  line-height: 1.6;
}

.copy-link {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  padding: 9px;
  background: color-mix(in srgb, var(--maker-primary) 10%, #fff);
  color: var(--maker-primary);
  font-weight: 900;
  cursor: pointer;
}

.goto-poll {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: var(--maker-primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.goto-poll:hover {
  background: var(--maker-primary-dark);
}

.maker-page .toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(90px);
  background: #111827;
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  opacity: 0;
  transition: .25s;
  z-index: 10;
  font-size: 13px;
  direction: rtl;
  unicode-bidi: plaintext;
}

.maker-page .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 901px) {
  .maker-page .maker-content-row {
    display: flex;
  }

  .maker-page .maker-content-row .yoyoo-ad-side {
    display: block;
  }
}

@media (max-width: 900px) {
  .maker-page .maker-content-row .yoyoo-ad-side {
    display: none !important;
  }

  .maker-content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    padding: 0;
  }

  .maker-content-row .maker-wrap {
    margin-left: auto;
    margin-right: auto;
    width: min(340px, calc(100% - 28px));
  }

  .maker-page .maker-top-spacer {
    display: none;
  }

  .maker-page .maker-top-shell {
    display: block;
    max-width: none;
    padding: 0 16px;
  }

  .maker-page .maker-top-inner {
    max-width: 850px;
    margin: 0 auto;
  }

  .maker-page .yoyoo-barmain {
    display: none !important;
  }

  .maker-page .login-notice {
    display: none;
  }

  .maker-page .maker-top {
    padding: 12px 16px 14px;
  }

  .maker-top-inner {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 10px;
  }

  .maker-brand {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }

  .maker-brand-sub {
    text-align: center;
  }

  .maker-heading {
    font-size: 26px;
  }

  .login-notice {
    grid-column: 1;
    grid-row: 2;
    max-width: 470px;
    width: 100%;
    margin: 6px auto 0;
    padding: 10px 8px;
    border-radius: 14px;
  }

  .notice-text {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .notice-links {
    gap: 7px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .notice-links a {
    font-size: 15px;
  }

  .maker-wrap {
    max-width: none;
    grid-template-columns: 1fr;
    margin-inline: auto;
  }

  .maker-panel {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
  }

  .field,
  .actions,
  .maker-note,
  .generated {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .field input,
  .field textarea,
  .field select {
    width: 100%;
    max-width: 300px;
  }

  .option-row {
    grid-template-columns: 27px minmax(0, 236px) 32px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .add-option {
    width: 300px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .color-picks {
    width: 300px;
  }
}

@media (max-width: 440px) {
  .maker-panel { padding: 14px; }
}
