/* /anime/ photo-effect shared editor structure. Page colors and exceptional controls stay in each page theme. */

.bk-anime-effect-editor [hidden] {
  display: none !important;
}

.bk-anime-effect-hero {
  color: #fff;
}

.bk-anime-effect-hero-inner {
  display: block;
  min-height: 0;
  line-height: 1.55;
}

.bk-anime-effect-hero h1 {
  color: #fff;
  line-height: 1.35;
}

.bk-anime-effect-section-wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  background: #edf4f7;
}

.bk-anime-effect-help-wrap {
  padding-top: 18px;
  padding-bottom: 10px;
}

.bk-anime-effect-panel-title {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.bk-anime-effect-editor {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccdee6;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(40, 83, 102, 0.1);
}

.bk-anime-effect-editor-heading {
  padding: 22px 24px;
  color: #fff;
}

.bk-anime-effect-editor-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bk-anime-effect-editor-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.bk-anime-effect-editor-heading>p:last-child {
  margin: 7px 0 0;
  line-height: 1.7;
}

.bk-anime-effect-card {
  margin: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d6e3e8;
  border-radius: 8px;
}

.bk-anime-effect-upload-card {
  margin-bottom: 12px;
}

.bk-anime-effect-card-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.bk-anime-effect-card-heading-inline {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.bk-anime-effect-card-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.bk-anime-effect-card-heading h3 {
  margin: 0;
  color: #224d61;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.bk-anime-effect-card-heading p {
  margin: 2px 0 0;
  color: #647881;
  font-size: 13px;
  line-height: 1.5;
}

.bk-anime-effect-drop-zone {
  display: flex;
  min-height: 190px;
  padding: 22px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #486b7b;
  background: #f6fbfd;
  border: 2px dashed #88bed3;
  border-radius: 8px;
  text-align: center;
}

.bk-anime-effect-drop-zone.is-dragover {
  background: #e9f8ff;
  border-color: #277fa6;
}

.bk-anime-effect-drop-zone>.fa-solid {
  margin-bottom: 8px;
  font-size: 34px;
}

.bk-anime-effect-drop-zone strong,.bk-anime-effect-drop-zone span {
  display: block;
}

.bk-anime-effect-drop-zone strong {
  color: #285a70;
  font-size: 17px;
}

.bk-anime-effect-drop-zone span {
  margin-top: 4px;
  color: #667d87;
  line-height: 1.55;
}

.bk-anime-effect-file-button {
  min-height: 44px;
  margin-top: 15px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

.bk-anime-effect-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bk-anime-effect-sample-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bk-anime-effect-sample-button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #355d6e;
  background: #fff;
  border: 1px solid #c9dce4;
  border-radius: 7px;
  cursor: pointer;
}

.bk-anime-effect-sample-button:hover {
  background: #edf8fc;
  border-color: #5ba8c7;
}

.bk-anime-effect-sample-button:focus-visible {
  outline-offset: 2px;
}

.bk-anime-effect-sample-button:disabled {
  cursor: not-allowed;
}

.bk-anime-effect-sample-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bk-anime-effect-sample-button>span {
  min-height: 50px;
  padding: 6px 4px 7px;
}

.bk-anime-effect-sample-button strong,.bk-anime-effect-sample-button small {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.bk-anime-effect-sample-button strong {
  font-size: 13px;
}

.bk-anime-effect-sample-button small {
  margin-top: 2px;
  color: #677c85;
  font-size: 11px;
  font-weight: 400;
}

.bk-anime-effect-sample-note {
  display: block;
  margin-top: 8px;
  color: #71848c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.bk-anime-effect-source-info {
  display: flex;
  min-height: 58px;
  padding: 9px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4fafc;
  border: 1px solid #d5e7ee;
  border-radius: 7px;
}

.bk-anime-effect-source-info strong,.bk-anime-effect-source-info span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-anime-effect-source-info strong {
  color: #28556a;
}

.bk-anime-effect-source-info span {
  margin-top: 2px;
  color: #657780;
  font-size: 12px;
}

.bk-anime-effect-source-info .btn {
  min-height: 42px;
  flex: 0 0 auto;
}

.bk-anime-effect-status {
  display: flex;
  min-height: 48px;
  margin: 0 16px 16px;
  padding: 11px 13px;
  align-items: center;
  gap: 9px;
  color: #315e72;
  background: #eef8fc;
  border-left: 5px solid #3999c4;
  border-radius: 4px;
  line-height: 1.55;
}

.bk-anime-effect-status.is-success {
  color: #315e29;
  background: #f0f8ec;
  border-left-color: #6da63e;
}

.bk-anime-effect-status.is-error {
  color: #7d3030;
  background: #fff0f0;
  border-left-color: #c64c4c;
}

.bk-anime-effect-workspace-grid {
  display: grid;
  align-items: start;
}

.bk-anime-effect-workspace>.bk-anime-effect-workspace-grid>.bk-anime-effect-preview-card {
  position: sticky;
  top: 10px;
}

.bk-anime-effect-settings-column>.bk-anime-effect-card {
  margin-left: 0;
}

.bk-anime-effect-preview-toggle {
  min-height: 42px;
  white-space: nowrap;
}

.bk-anime-effect-canvas-stage,.bk-anime-effect-result-preview {
  display: flex;
  min-height: 280px;
  padding: 14px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #e4e9ec;
  background-size: 16px 16px;
  border: 1px solid #ccd7dc;
  border-radius: 7px;
}

.bk-anime-effect-canvas-stage canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  background: transparent;
}

.bk-anime-effect-preview-description {
  margin: 10px 0 0;
  color: #60747d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.bk-anime-effect-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bk-anime-effect-preset {
  min-height: 116px;
  padding: 11px 7px;
  color: #375c6d;
  background: #f8fbfc;
  border: 2px solid #d8e5ea;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.bk-anime-effect-preset-icon,.bk-anime-effect-preset strong,.bk-anime-effect-preset small {
  display: block;
}

.bk-anime-effect-preset-icon {
  min-height: 31px;
  font-size: 25px;
}

.bk-anime-effect-preset strong {
  margin-top: 4px;
  font-size: 15px;
}

.bk-anime-effect-preset small {
  margin-top: 4px;
  color: #647881;
  font-size: 11px;
  line-height: 1.4;
}

.bk-anime-effect-choice-group {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.bk-anime-effect-choice-group:last-child {
  margin-bottom: 0;
}

.bk-anime-effect-choice-group legend {
  width: auto;
  margin: 0 0 7px;
  padding: 0;
  color: #345b6c;
  font-size: 14px;
  font-weight: 700;
  border: 0;
}

.bk-anime-effect-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bk-anime-effect-output-size-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bk-anime-effect-segmented label,.bk-anime-effect-format-list label {
  position: relative;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.bk-anime-effect-segmented input,.bk-anime-effect-format-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bk-anime-effect-segmented span {
  display: flex;
  min-height: 44px;
  padding: 8px 5px;
  align-items: center;
  justify-content: center;
  color: #476674;
  background: #f7fafb;
  border: 1px solid #cfdee4;
  border-radius: 6px;
  text-align: center;
}

.bk-anime-effect-output-size-list span {
  flex-direction: column;
}

.bk-anime-effect-output-size-list small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
}

.bk-anime-effect-segmented input:checked+span,.bk-anime-effect-format-list input:checked+span {
  font-weight: 700;
}

.bk-anime-effect-segmented input:focus-visible+span,.bk-anime-effect-format-list input:focus-visible+span {
  outline-offset: 2px;
}

.bk-anime-effect-segmented input:disabled+span,.bk-anime-effect-format-list input:disabled+span {
  color: #9aa6ab;
  background: #f0f2f3;
  cursor: not-allowed;
}

.bk-anime-effect-format-list {
  display: grid;
  gap: 7px;
}

.bk-anime-effect-format-list label>span {
  display: grid;
  min-height: 55px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  color: #496873;
  background: #f8fafb;
  border: 1px solid #d2e0e5;
  border-radius: 6px;
}

.bk-anime-effect-format-list strong,.bk-anime-effect-format-list small {
  display: block;
}

.bk-anime-effect-format-list small {
  color: #687c84;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.bk-anime-effect-format-list .bk-anime-effect-format-recommendation {
  display: inline;
  font-weight: 700;
}

.bk-anime-effect-field-note {
  margin: 7px 0 0;
  color: #6c7d84;
  font-size: 12px;
  line-height: 1.55;
}

.bk-anime-effect-field-note.is-unavailable {
  color: #a94442;
  font-weight: 700;
}

.bk-anime-effect-reset-settings {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 13px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: normal;
}

.bk-anime-effect-generate-card {
  background: #f5fbf2;
  border-color: #cfe2c5;
}

.bk-anime-effect-generate-button {
  display: block;
  width: 100%;
  min-height: 54px;
  font-weight: 700;
  white-space: normal;
}

.bk-anime-effect-progress {
  display: grid;
  gap: 8px;
}

.bk-anime-effect-progress progress {
  width: 100%;
  height: 16px;
  accent-color: #5f9f00;
}

.bk-anime-effect-progress span {
  color: #49645a;
  line-height: 1.5;
  text-align: center;
}

.bk-anime-effect-progress .btn {
  min-height: 44px;
}

.bk-anime-effect-result {
  border-color: #b9d8a8;
  scroll-margin-top: 12px;
}

.bk-anime-effect-result-heading {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  gap: 11px;
}

.bk-anime-effect-result-check {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #69a63e;
  border-radius: 50%;
}

.bk-anime-effect-result-heading h3 {
  margin: 0;
  color: #355c2d;
  font-size: 20px;
  font-weight: 700;
}

.bk-anime-effect-result-heading p {
  margin: 3px 0 0;
  color: #66785f;
}

.bk-anime-effect-result-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.bk-anime-effect-result-preview img,.bk-anime-effect-result-preview video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
}

.bk-anime-effect-result-details dl {
  margin: 0;
  border-top: 1px solid #dce5d8;
}

.bk-anime-effect-result-details dl>div {
  display: grid;
  grid-template-columns: 42% 58%;
  padding: 9px 4px;
  border-bottom: 1px solid #dce5d8;
}

.bk-anime-effect-result-details dt {
  color: #647060;
  font-weight: 400;
}

.bk-anime-effect-result-details dd {
  margin: 0;
  color: #35522e;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.bk-anime-effect-result-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.bk-anime-effect-result-actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.bk-anime-effect-result-actions .fa-solid {
  margin-right: 6px;
}

.bk-anime-effect-examples-lead {
  margin: 0 0 14px;
  color: #556b74;
  line-height: 1.7;
}

.bk-anime-effect-example-grid {
  display: grid;
  gap: 14px;
}

.bk-anime-effect-example-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.bk-anime-effect-example-card img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: contain;
  background: #e8eef1;
}

.bk-anime-effect-example-card figcaption {
  padding: 10px 11px 11px;
  line-height: 1.45;
}

.bk-anime-effect-example-card figcaption strong,.bk-anime-effect-example-card figcaption span {
  display: block;
}

.bk-anime-effect-example-card figcaption span {
  margin-top: 2px;
  font-size: 12px;
}

.bk-anime-effect-pause-note {
  margin: 0;
}

.bk-anime-effect-pause-note h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bk-anime-effect-pause-note p {
  margin: 0;
}

.bk-anime-effect-editor button:focus-visible,.bk-anime-effect-editor a:focus-visible,.bk-anime-effect-editor summary:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .bk-anime-effect-workspace>.bk-anime-effect-workspace-grid>.bk-anime-effect-preview-card {
    position: static;
  }

  .bk-anime-effect-settings-column>.bk-anime-effect-card {
    margin-left: 16px;
  }

}

@media (max-width: 767px) {
  .bk-anime-effect-hero h1 {
    font-size: 1.6em;
    line-height: 1.4;
  }

  .bk-anime-effect-section-wrap,.bk-anime-effect-help-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .bk-anime-effect-editor {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .bk-anime-effect-editor-heading {
    padding: 17px 14px;
  }

  .bk-anime-effect-editor-heading h2 {
    font-size: 21px;
  }

  .bk-anime-effect-card,.bk-anime-effect-settings-column>.bk-anime-effect-card {
    margin: 10px;
    padding: 13px;
  }

  .bk-anime-effect-status {
    margin: 0 10px 10px;
  }

  .bk-anime-effect-drop-zone {
    min-height: 170px;
    padding: 17px 12px;
  }

  .bk-anime-effect-preview-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bk-anime-effect-canvas-stage,.bk-anime-effect-result-preview {
    min-height: 220px;
    padding: 9px;
  }

  .bk-anime-effect-preset {
    display: grid;
    min-height: 62px;
    padding: 8px 10px;
    align-items: center;
    text-align: left;
  }

  .bk-anime-effect-preset-icon {
    min-height: 0;
    grid-row: 1 / span 2;
    text-align: center;
  }

  .bk-anime-effect-preset strong,.bk-anime-effect-preset small {
    margin: 0;
  }

  .bk-anime-effect-source-info {
    align-items: stretch;
    flex-direction: column;
  }

  .bk-anime-effect-example-card img {
    height: auto;
    max-height: 520px;
  }

  .bk-anime-effect-result-heading h3 {
    font-size: 18px;
  }

}

@media (max-width: 374px) {
  .bk-anime-effect-card,.bk-anime-effect-settings-column>.bk-anime-effect-card {
    margin-right: 7px;
    margin-left: 7px;
    padding: 11px;
  }

  .bk-anime-effect-status {
    margin-right: 7px;
    margin-left: 7px;
  }

  .bk-anime-effect-segmented {
    gap: 4px;
  }

  .bk-anime-effect-segmented span {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 12px;
  }

  .bk-anime-effect-sample-list {
    gap: 5px;
  }

  .bk-anime-effect-sample-button>span {
    min-height: 46px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .bk-anime-effect-sample-button strong {
    font-size: 12px;
  }

  .bk-anime-effect-sample-button small {
    font-size: 10px;
  }

  .bk-anime-effect-format-list label>span {
    gap: 2px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .bk-anime-effect-drop-zone,.bk-anime-effect-preset {
    transition: none;
  }

  .bk-anime-effect-status.is-loading .fa-solid {
    animation: none;
  }

}

@keyframes bk-anime-effect-spin {
  to { transform: rotate(360deg); }
}
