.yq-lock {
  overflow: hidden !important;
}
.yq-workspace {
  --yq-bg: #f8fafc;
  --yq-bg2: #fff;
  --yq-accent: #db2777;
  --yq-ink: #172033;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, var(--yq-bg), var(--yq-bg2));
  color: var(--yq-ink);
  overflow: auto;
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
}
.yq-workspace * {
  box-sizing: border-box;
}
.yq-hidden {
  display: none !important;
}
.yq-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--yq-bg) 84%, transparent);
  border-bottom: 1px solid rgba(127, 127, 127, 0.14);
  backdrop-filter: blur(18px);
}
.yq-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.yq-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.yq-brand span {
  color: #e24ec0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.yq-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--yq-accent);
  color: #fff;
}
.yq-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yq-icon-btn,
.yq-soft-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  cursor: pointer;
  border-radius: 14px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.13);
}
.yq-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 70px;
  display: grid;
  grid-template-columns: 400px minmax(0, 680px);
  gap: 48px;
  align-items: start;
}
.yq-visual {
  position: sticky;
  top: 112px;
}
.yq-cover {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--yq-accent), var(--yq-bg2));
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.16);
}
.yq-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yq-generated {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 35px;
  background: linear-gradient(135deg, var(--yq-accent), var(--yq-bg2));
  color: #fff;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-align: center;
  overflow: hidden;
}
.yq-generated:before,
.yq-generated:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 45%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
  transform: rotate(28deg);
  top: -100px;
  right: -80px;
}
.yq-generated:after {
  top: auto;
  right: auto;
  bottom: -120px;
  left: -70px;
  background: rgba(0, 0, 0, 0.12);
}
.yq-generated span {
  position: relative;
  z-index: 1;
}
.yq-upload {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #171717;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.22);
}
.yq-theme-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 58px 46px;
  gap: 10px;
}
.yq-theme-current {
  height: 58px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.64);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.13);
}
.yq-theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--yq-accent);
}
.yq-theme-current small {
  display: block;
  opacity: 0.55;
}
.yq-theme-current strong {
  display: block;
  font-size: 16px;
}
.yq-shuffle {
  height: 58px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.64);
  color: inherit;
  font-size: 19px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.13);
}
.yq-back-theme {
  height: 58px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  font-size: 17px;
}
.yq-back-theme:disabled {
  opacity: 0.16;
  cursor: default;
}
.yq-form {
  min-width: 0;
}
.yq-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.yq-pill {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  padding: 9px 13px;
  font-weight: 750;
}
.yq-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: 900 clamp(36px, 5vw, 58px) / 1.05 inherit;
  letter-spacing: -0.045em;
  padding: 0;
  margin: 0 0 24px;
  outline: none;
}
.yq-title::placeholder {
  color: color-mix(in srgb, var(--yq-ink) 32%, transparent);
}
.yq-card {
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.1);
  overflow: hidden;
  margin-bottom: 14px;
}
.yq-row {
  min-height: 58px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.1);
  cursor: pointer;
}
.yq-row:last-child {
  border-bottom: 0;
}
.yq-row > i {
  width: 20px;
  text-align: center;
  opacity: 0.55;
}
.yq-row-main {
  flex: 1;
  min-width: 0;
}
.yq-row-title {
  font-weight: 800;
}
.yq-row-sub {
  font-size: 13px;
  opacity: 0.56;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yq-row-value {
  font-weight: 750;
  opacity: 0.72;
  text-align: right;
}
.yq-time-grid {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px 18px;
  align-items: center;
}
.yq-time-grid input {
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  border-radius: 10px;
  padding: 8px;
  font: inherit;
}
.yq-time-grid > div:nth-child(even) {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 92px;
  gap: 7px;
}
.yq-time-grid input[type="text"] {
  width: 92px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.yq-time-picker-input {
  cursor: pointer;
  caret-color: transparent;
  font-weight: 850 !important;
}
.yq-time-picker-input:hover,
.yq-time-picker-input:focus-visible {
  background: #fff !important;
  box-shadow: 0 0 0 2px var(--yq-accent);
  outline: 0;
}
.yq-time-preview {
  margin: 2px 0 18px;
  text-align: center;
  color: #111827;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.yq-picker-label {
  margin: 14px 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}
.yq-time-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.yq-time-choice-grid button {
  min-height: 42px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.yq-time-choice-grid button:hover {
  border-color: #111827;
}
.yq-time-choice-grid button.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.2);
}
.yq-time-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0;
}
.yq-time-tools button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  min-width: min(150px, calc(100% - 40px));
  flex: 1;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.64);
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.13);
}
.yq-time-tools button strong {
  color: var(--yq-accent);
}
.yq-duration-grid-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}
.yq-duration-grid-label i {
  width: 14px;
  color: var(--yq-accent);
  text-align: center;
}
.yq-24h-note {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.55;
  white-space: nowrap;
}
.yq-duration-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.yq-duration-choices button {
  min-height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
  color: #334155;
  font-weight: 850;
  cursor: pointer;
}
.yq-duration-choices button.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.yq-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yq-accent);
  display: inline-block;
  margin-right: 9px;
}
.yq-dot.end {
  background: transparent;
  border: 1px solid currentColor;
}
.yq-section-label {
  font-weight: 850;
  margin: 23px 0 9px;
  font-size: 14px;
  opacity: 0.67;
}
.yq-toggle {
  width: 46px;
  height: 27px;
  border: 0;
  border-radius: 99px;
  background: rgba(127, 127, 127, 0.28);
  padding: 3px;
  cursor: pointer;
  transition: 0.2s;
}
.yq-toggle:before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}
.yq-toggle.on {
  background: #111827;
  box-shadow:
    0 0 0 3px rgba(17, 24, 39, 0.18),
    0 5px 14px rgba(17, 24, 39, 0.3);
}
.yq-toggle.on:before {
  transform: translateX(19px);
}
#yq-close {
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
}
#yq-close:hover {
  background: #000;
  transform: scale(1.05);
}
.yq-primary {
  width: 100%;
  height: 58px;
  margin-top: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--yq-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 15px 34px color-mix(in srgb, var(--yq-accent) 28%, transparent);
}
.yq-primary:disabled {
  opacity: 0.48;
  cursor: wait;
}
.yq-footnote {
  text-align: center;
  font-size: 12px;
  opacity: 0.52;
  margin-top: 13px;
}
.yq-popover {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 23, 42, 0.34);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.yq-dialog {
  width: min(430px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  color: #1f2937;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
}
.yq-dialog h3 {
  font-size: 22px;
  margin: 8px 0;
}
.yq-dialog p {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 20px;
}
.yq-field {
  margin: 14px 0;
}
.yq-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.yq-field input,
.yq-field select,
.yq-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}
.yq-field textarea {
  min-height: 150px;
  resize: vertical;
}
.yq-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #f8fafc;
}
.yq-rich-toolbar button {
  min-width: 38px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.yq-rich-toolbar button:hover {
  background: #e2e8f0;
}
.yq-rich-editor {
  min-height: 230px;
  max-height: 50vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: #1f2937;
  line-height: 1.7;
  outline: none;
}
.yq-rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
}
.yq-rich-editor h2 {
  margin: 0.6em 0 0.25em;
  font-size: 1.45em;
  font-weight: 900;
}
.yq-rich-editor blockquote {
  margin: 0.7em 0;
  padding-left: 14px;
  border-left: 4px solid #cbd5e1;
  color: #64748b;
}
.yq-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.yq-dialog-actions button {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
}
.yq-confirm {
  background: #202020 !important;
  color: #fff;
}
.yq-cancel {
  background: #f1f5f9;
}
.yq-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.yq-theme-choice {
  border: 2px solid transparent;
  background: #f8fafc;
  border-radius: 15px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.yq-theme-choice.active {
  border-color: #111;
}
.yq-theme-preview {
  height: 62px;
  border-radius: 10px;
  margin-bottom: 7px;
}
.yq-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10003;
  transform: translateX(-50%);
  background: #172033;
  color: #fff;
  border-radius: 13px;
  padding: 12px 18px;
  font-weight: 750;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.yq-publish-success {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}
.yq-success-card {
  width: min(410px, 100%);
  padding: 34px 26px 26px;
  border-radius: 26px;
  background: #fff;
  color: #172033;
  text-align: center;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}
.yq-success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.24);
}
.yq-success-card h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 950;
}
.yq-success-card p {
  margin: 8px 0 22px;
  color: #64748b;
}
.yq-success-card button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 820px) {
  .yq-topbar {
    height: 60px;
    padding: 0 14px;
  }
  .yq-brand span {
    display: none;
  }
  .yq-shell {
    width: min(100% - 28px, 620px);
    display: block;
    padding: 20px 0 110px;
  }
  .yq-visual {
    position: static;
  }
  .yq-cover {
    aspect-ratio: 16/9;
    border-radius: 20px;
  }
  .yq-generated {
    font-size: 32px;
  }
  .yq-theme-row {
    margin: 12px 0 25px;
  }
  .yq-title {
    font-size: 38px;
    margin-bottom: 20px;
  }
  .yq-meta-row {
    margin-bottom: 12px;
  }
  .yq-time-grid {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 9px;
  }
  .yq-time-grid > div:nth-child(even) {
    grid-template-columns: minmax(125px, 1fr) 78px;
    gap: 5px;
  }
  .yq-time-grid input {
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
    font-size: 14px;
  }
  .yq-time-grid input[type="text"] {
    width: 78px;
  }
  .yq-time-grid ~ .yq-row-value {
    width: 100%;
    margin-left: 33px;
    text-align: left;
    font-size: 12px;
  }
  .yq-time-tools {
    padding: 0;
  }
  .yq-primary {
    position: fixed;
    z-index: 5;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  }
  .yq-footnote {
    display: none;
  }
}
@media (max-width: 420px) {
  .yq-shell {
    width: calc(100% - 20px);
  }
  .yq-time-grid > div:nth-child(even) {
    grid-template-columns: minmax(108px, 1fr) 72px;
  }
  .yq-time-grid input[type="text"] {
    width: 72px;
  }
  .yq-24h-note {
    font-size: 11px;
  }
  .yq-time-choice-grid {
    gap: 5px;
  }
  .yq-time-choice-grid button {
    min-height: 40px;
    padding: 0;
    font-size: 14px;
  }
  .yq-soft-btn span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yq-workspace * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 2026-08-31 mobile time layout fix:
   Keep Duration / 24H inside the time grid and move the timezone
   to its own line so narrow screens never overlap. */
@media (max-width: 820px) {
  .yq-time-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .yq-time-row > .yq-row-main {
    flex: 1 1 calc(100% - 33px);
    min-width: 0;
  }

  .yq-time-row > .yq-row-value {
    flex: 0 0 calc(100% - 33px);
    width: calc(100% - 33px);
    margin: 4px 0 0 33px;
    padding-top: 8px;
    border-top: 1px solid rgba(127, 127, 127, 0.10);
    text-align: left;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .yq-time-tools {
    min-width: 0;
    width: 100%;
  }

  .yq-time-tools button {
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .yq-time-tools button strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .yq-24h-note {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .yq-time-row > .yq-row-value {
    margin-left: 33px;
    width: calc(100% - 33px);
  }

  .yq-time-tools {
    gap: 7px;
  }

  .yq-time-tools button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Quick Create — Pro-only PAYUNi upsell */
.yq-pro-payment-lock {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}
.yq-pro-payment-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fef3c7;
  color: #b45309;
  font-size: 16px;
}
.yq-pro-payment-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yq-pro-payment-copy strong {
  color: #78350f;
  font-size: 13px;
  line-height: 1.35;
}
.yq-pro-payment-copy span {
  color: #92400e;
  font-size: 11px;
  line-height: 1.45;
}
.yq-pro-payment-lock button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.yq-pro-payment-lock button:hover {
  background: #000;
}
#yqd-payment option:disabled {
  color: #9ca3af;
}

@media (max-width: 520px) {
  .yq-pro-payment-lock {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .yq-pro-payment-lock button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
