.bk-gif-henshuu-wrap { padding-top: 15px; background: #f4f6f2; }
.bk-gif-henshuu,
.bk-gif-henshuu * { box-sizing: border-box; }
.bk-gif-henshuu { margin: 0; color: #314137; }
.bk-gif-henshuu [hidden] { display: none !important; }
.bk-gif-henshuu-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.bk-gif-henshuu-section { overflow: hidden; margin-bottom: 15px; border: 1px solid #d7e5cf; border-radius: 5px; background: #fff; }
.bk-gif-henshuu-title { min-height: 45px; height: auto; margin: 0; padding: 0 15px; border-radius: 5px 5px 0 0; font-weight: 700; }
.bk-gif-henshuu-body { padding: 15px; }
.bk-gif-henshuu-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; gap: 8px; margin-top: 12px; border: 2px dashed #79bddc; border-radius: 6px; background: #f4fbfe; color: #42515a; font-size: 18px; text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.bk-gif-henshuu-drop:hover,
.bk-gif-henshuu-drop.is-dragover { border-color: #28a5d8; background: #e6f7ff; }
.bk-gif-henshuu-drop[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.bk-gif-henshuu-drop:focus,
.bk-gif-henshuu-faq-list summary:focus { outline: 3px solid rgba(45, 170, 225, .42); outline-offset: 2px; }
.bk-gif-henshuu-drop i { color: #35addc; font-size: 32px; }
.bk-gif-henshuu-drop strong span { display: inline; }
.bk-gif-henshuu-drop-help { color: #66747c; font-size: 13px; }

.bk-gif-henshuu-source-preview { margin-top: 12px; padding: 12px; border: 1px solid #d7e5cf; background: #f8fbf6; text-align: center; }
.bk-gif-henshuu-source-preview p { margin: 0 0 8px; font-weight: 700; }
.bk-gif-henshuu-source-preview img { display: block; max-width: 100%; max-height: 320px; margin: 0 auto; border: 1px solid #d9dfd4; background: #fff; object-fit: contain; }
.bk-gif-henshuu-source { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border: 1px solid #ddd; background: #ddd; }
.bk-gif-henshuu-source > span { padding: 10px; background: #fff; }
.bk-gif-henshuu-status { min-height: 42px; margin-top: 12px; padding: 10px 12px; border-left: 4px solid #72c800; background: #f4faef; }
.bk-gif-henshuu-status.is-error { border-color: #d9534f; background: #fff1f0; color: #8a2522; }
.bk-gif-henshuu-status.is-processing { border-color: #35addc; background: #eefaff; color: #24546c; }

.bk-gif-henshuu-progress { margin-top: 12px; padding: 14px; border: 1px solid #d6ddd2; border-radius: 6px; background: #fff; text-align: center; }
.bk-gif-henshuu-progress .progress { margin-bottom: 10px; }
.bk-gif-henshuu-progress p { margin: 0 0 10px; color: #38536a; font-weight: 700; }

.bk-gif-henshuu.is-imported > .bk-gif-henshuu-section { display: none; }
.bk-gif-henshuu-editor { margin-bottom: 15px; }
.bk-gif-henshuu-editor .bk-anime-local-editor-wrap { padding-top: 0; background: transparent; }
.bk-gif-henshuu-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.bk-gif-henshuu-shortcuts a { display: inline-flex; min-height: 44px; padding: 8px 13px; align-items: center; justify-content: center; gap: 6px; color: #315f22; font-weight: 700; text-align: center; text-decoration: none; background: #f3faef; border: 1px solid #bad5ae; border-radius: 5px; }
.bk-gif-henshuu-shortcuts a:hover,
.bk-gif-henshuu-shortcuts a:focus { color: #204814; text-decoration: none; background: #eaf6e4; border-color: #83b66f; }
.bk-gif-henshuu-shortcuts a:focus { outline: 3px solid rgba(45, 170, 225, .42); outline-offset: 2px; }
.bk-gif-henshuu:not(.is-imported) .bk-gif-henshuu-editor-shortcut { display: none; }
.bk-gif-henshuu:not(.is-imported) .bk-gif-henshuu-guide-shortcuts { display: none; }
.bk-gif-henshuu-guide-shortcuts { margin-top: 12px; }

@media (min-width: 768px) {
  .bk-gif-henshuu-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin: 0 auto 20px; padding: 10px; background: #fff; border: 1px solid #d8dfd3; border-radius: 8px; box-shadow: 0 1px 3px rgba(38, 58, 30, .07); }
  .bk-gif-henshuu-shortcuts a { min-height: 52px; }
}

@media (min-width: 992px) {
  .bk-gif-henshuu:not(.is-imported) .bk-gif-henshuu-shortcuts { max-width: 1160px; }
  .bk-gif-henshuu.is-imported .bk-gif-henshuu-shortcuts { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1160px; }
  .bk-gif-henshuu-shortcuts a { min-height: 58px; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
  .bk-gif-henshuu-shortcuts a:hover { box-shadow: 0 3px 8px rgba(43, 89, 33, .15); transform: translateY(-1px); }
}

.bk-gif-henshuu-faq-list p { margin: 0; line-height: 1.75; }
.bk-gif-henshuu-faq-list details { overflow: hidden; border: 1px solid #d9e2e6; border-radius: 5px; background: #fff; }
.bk-gif-henshuu-faq-list details + details { margin-top: 8px; }
.bk-gif-henshuu-faq-list summary { position: relative; display: flex; min-height: 48px; padding: 10px 38px 10px 13px; align-items: center; color: #2c5264; font-weight: 700; background: #f5fafc; cursor: pointer; list-style: none; }
.bk-gif-henshuu-faq-list summary::-webkit-details-marker { display: none; }
.bk-gif-henshuu-faq-list summary::after { position: absolute; top: 50%; right: 14px; color: #39718c; font-size: 21px; line-height: 1; content: "+"; transform: translateY(-50%); }
.bk-gif-henshuu-faq-list details[open] summary { border-bottom: 1px solid #d9e2e6; }
.bk-gif-henshuu-faq-list details[open] summary::after { content: "−"; }
.bk-gif-henshuu-faq-list details > p { padding: 12px 14px; }

@media (max-width: 767px) {
  .bk-gif-henshuu-wrap { padding-top: 10px; }
  .bk-gif-henshuu-body { padding: 10px; }
  .bk-gif-henshuu-drop { min-height: 100px; padding: 12px; }
  .bk-gif-henshuu-drop strong span { display: block; }
  .bk-gif-henshuu-source { grid-template-columns: minmax(0, 1fr); }
  .bk-gif-henshuu-source > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .bk-gif-henshuu-source > span strong { flex: 0 0 auto; white-space: nowrap; }
  .bk-gif-henshuu-source > span > span { min-width: 0; overflow-wrap: anywhere; text-align: right; }
  .bk-gif-henshuu-source-preview img { max-height: 240px; }
  .bk-gif-henshuu-shortcuts { flex-wrap: wrap; gap: 6px; }
  .bk-gif-henshuu-shortcuts a { min-width: 0; flex: 1 1 calc((100% - 12px) / 3); padding: 8px 6px; font-size: 14px; white-space: nowrap; }
}

@media (max-width: 374px) {
  .bk-gif-henshuu-shortcuts a { padding-right: 3px; padding-left: 3px; font-size: 13px; }
  .bk-gif-henshuu-shortcuts a i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-gif-henshuu-shortcuts a { transition: none; }
}
