/* Opt-in presentation for this page, including its shared controls. */
body.kling-borderless { --kling-focus-light: #ffead8; --kling-focus-dark: #633817; }
/* Keep editor labels visually identical after removing their heading semantics. */
body.kling-borderless #manual-guide-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) {
  body.kling-borderless #manual-mask-dialog .manual-modal-title { font-size: 16px !important; line-height: 1.35 !important; font-weight: 600; letter-spacing: 0; }
}
@media (max-width: 767px) {
  body.kling-borderless .kling-editor-label { margin-bottom: .75rem !important; }
  body.kling-borderless .kling-editor-label + p { font-size: var(--mobile-type-lead-size) !important; line-height: var(--mobile-type-lead-line-height) !important; }
}
@media (max-width: 560px) { body.kling-borderless #manual-guide-title { font-size: 15px; } }
/* Only the temporary skeleton has a fill; loaded videos have no backing plate. */
body.kling-borderless video,
body.kling-borderless :is(.media-video-frame, .manual-preview-stage, .manual-trim-preview, .kling-meaning-media, .kling-difficulty-media, .kling-branding-media) { background: transparent !important; }
body.kling-borderless :is(button, a, input, select, textarea, summary, video, dialog, progress, [tabindex]) {
  border: 0; outline: none; box-shadow: none;
}
body.kling-borderless :is(.manual-primary, .manual-secondary, .manual-icon-btn, .manual-workspace-action, .manual-preview-fullscreen, .manual-edit-mask-action, .manual-trim-play, .manual-guide-trigger, .manual-guide-close, .mobile-lang-btn, .footer-social) {
  border: 0; box-shadow: none;
}
body.kling-borderless :is(.manual-upload-card, .manual-preview-stage, .manual-remove-confirm, .manual-mask-dialog, .manual-trim-dialog, .manual-modal-header, .manual-modal-footer, .manual-trim-footer, .manual-estimate, .manual-trim-preview-badge, .manual-trim-fields label > div, .manual-trim-window, .manual-trim-model-note, .manual-trim-tip, .manual-guide-panel, .manual-guide-heading, .manual-workspace-heading > span, .manual-processing-icon) {
  border: 0; box-shadow: none;
}
body.kling-borderless .manual-guide-panel::before,
body.kling-borderless .manual-guide-steps li::before,
body.kling-borderless .manual-upload-motion::before,
body.kling-borderless .manual-upload-orbit { border: 0; }
body.kling-borderless .manual-upload-motion::before { display: none; }
body.kling-borderless .manual-upload-orbit::after,
body.kling-borderless :is(.manual-trim-playhead, .manual-trim-window, .manual-trim-fields input:focus) { box-shadow: none; }
body.kling-borderless .manual-drop-zone.is-dragging { outline: none; background: #fd7c0f24; }
body.kling-borderless .manual-upload-card { background: #17191d; }
body.kling-borderless .manual-upload-card.is-upload-highlighted { background: #35271b; }
body.kling-borderless :is(.manual-primary, .kling-workflow-actions > button, button[onclick="scrollToUpload()"] ) {
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font-size: 16px; line-height: 1.5; font-weight: 700; gap: 10px;
}
body.kling-borderless :is(.manual-secondary, .manual-workspace-action, .manual-icon-btn) { background-color: #ffffff0d; }
body.kling-borderless .manual-trim-window { background: #fd7c0f55; }
body.kling-borderless .manual-trim-track { background: #292c31; }
body.kling-borderless .manual-trim-fields label > div { background: #111318; }
body.kling-borderless .manual-trim-fields label > div:focus-within { background: #51351e; }
body.kling-borderless .manual-error:not([hidden]) { padding: 12px 14px; border-radius: 10px; background: #5d262b66; }

/* Remove decorative edges from shared navigation without changing its source. */
body.kling-borderless :is(.site-header, #mobileMenu, #mobileAccountMenu, footer) :is([class~="border"], [class*="border-"], .creator-chip, .creator-surface-dark, .footer-social) { border: 0; box-shadow: none; }
body.kling-borderless :is(#mobileMenu .mobile-menu-section, #mobileMenu .mobile-menu-direct-link) { border: 0; }
body.kling-borderless .site-header.is-scrolled { box-shadow: none; }
body.kling-borderless .footer-social { background: #ffffff0b; }
body.kling-borderless > footer { border: 0; }
body.kling-borderless #authModal :is([class~="border"], [class*="border-"]),
body.kling-borderless #googleAuthFeedback { border: 0; }

/* Background changes remain visible to keyboard users, including inside menus. */
body.kling-borderless :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none !important; box-shadow: none !important;
  background-color: var(--kling-focus-light); color: #943b00;
}
body.kling-borderless :is(.manual-hero, dialog, .site-header, #mobileMenu, #mobileAccountMenu, footer) :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  background-color: var(--kling-focus-dark); color: #fff;
}
body.kling-borderless :is(.manual-primary, .kling-workflow-actions > button, button[onclick="scrollToUpload()"]):focus-visible { background: #be5100; color: #fff; }
body.kling-borderless video:focus-visible { filter: brightness(1.12); outline: none; box-shadow: none; }
body.kling-borderless :is(.manual-trim-track, .manual-trim-play, .manual-preview-fullscreen, .manual-edit-mask-action):focus-visible { box-shadow: none; }

/* The content now uses space and surface color instead of card contours. */
body.kling-borderless :is(.kling-generation-card, .kling-motion-card, .kling-export-card) { box-shadow: none; }
body.kling-borderless :is(.kling-generation-card, .kling-motion-card, .kling-export-card):hover { box-shadow: none; }
body.kling-borderless .kling-workflow-step::after { display: none; }
body.kling-borderless [aria-labelledby="kling-faq-heading"] article { background: #f7f8fa; }
body.kling-borderless .faq-btn { border-radius: 16px; }
body.kling-borderless .faq-btn[aria-expanded="true"] { background: #fff0e3; }
body.kling-borderless .faq-content { background: transparent; }
body.kling-borderless .kling-content h2 { text-wrap: pretty; }
body.kling-borderless .kling-content :is(.kling-workflow-heading, .kling-difficulty-heading) { text-wrap: wrap; }
@media (max-width: 767px) { body.kling-borderless .kling-content { padding-block: 56px; } }
