.val-tv-hero .row { align-items: center; }
.val-tv-hero .page-header-title { margin-bottom: 30px; }
.val-tv-hero-preview { padding: 24px; }
.val-tv-hero-frame { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 48px rgba(20, 48, 90, .18); }
.val-tv-hero-frame > img { display: block; width: 100%; height: auto; margin: 0; }
.val-tv-hero-tone { position: absolute; inset: 0 0 0 50%; background: url('../images/tonal-values/tonal-values-shadow-study-right.webp') center / 100% 100% no-repeat; border-left: 3px solid #fff; }
.val-tv-hero-caption { margin: 12px 0 0; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.45; }
section.tools-header-section p.val-tv-lab-link { margin: 16px 0 0; font-size: 15px; line-height: 1.45; }
section.tools-header-section p.val-tv-lab-link a { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45; text-decoration: none; }
section.tools-header-section p.val-tv-lab-link a:hover,
section.tools-header-section p.val-tv-lab-link a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.val-tv-hero-tag { position: absolute; bottom: 15px; z-index: 1; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #31547b; font-size: 13px; font-weight: 700; }
.val-tv-hero-tag--left { left: 15px; }
.val-tv-hero-tag--right { right: 15px; }
.val-tv-intro { max-width: 740px; margin: 0 auto 30px; }
.val-tv-widget { max-width: 1160px; margin: 0 auto; text-align: left; }
#val-tv-widget [hidden], #val-tv-file { display: none !important; }
.val-tv-dropzone { min-height: 300px; border: 2px dashed #9bc9e8; border-radius: 20px; background: #f7fbff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; transition: border-color .2s, background .2s; }
.val-tv-dropzone.is-dragging { border-color: #27a9e0; background: #eaf7ff; }
.val-tv-dropzone img { width: 78px; height: 78px; object-fit: contain; }
.val-tv-dropzone h3 { margin: 0; font-size: 22px; }
.val-tv-dropzone small { display: block; color: #657688; }
.val-tv-editor { overflow: hidden; border: 1px solid #d7e6f1; border-radius: 20px; background: #fff; box-shadow: 0 15px 42px rgba(30, 75, 112, .09); }
.val-tv-toolbar { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #e2edf5; }
.val-tv-toolbar .val-tv-icon-button { width: 40px !important; height: 40px !important; flex: 0 0 40px; padding: 0; margin: 0; font-size: 16px; }
.val-tv-icon-button svg { display: block; width: 19px; height: 19px; }
.val-tv-toolbar .val-tv-icon-button:disabled { opacity: .45; cursor: not-allowed; }
.val-tv-modes { --active-offset: 200%; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 450px); padding: 3px; overflow: hidden; border: 1px solid #dce9f2; border-radius: 11px; background: #f3f8fc; }
.val-tv-modes::before { content: ''; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(25% - 1.5px); border-radius: 8px; background: #5163ca; box-shadow: 0 2px 7px rgba(52, 71, 137, .2); transform: translateX(var(--active-offset)); transition: transform .2s ease; }
.val-tv-mode { position: relative; z-index: 1; min-width: 0; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: #31547b; font-size: 13px; font-weight: 600; line-height: 1.15; overflow-wrap: break-word; cursor: pointer; }
.val-tv-mode[aria-pressed="true"] { color: #fff; }
.val-tv-mode:hover:not([aria-pressed="true"]) { color: #5163ca; }
.val-tv-mode:focus-visible { outline: 2px solid #2dce89; outline-offset: -2px; }
.val-tv-toolbar .val-tv-icon-button:focus-visible, .val-tv-zoom-button:focus-visible { outline: 2px solid #2dce89; outline-offset: 2px; }
.val-tv-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.val-tv-mode-note { margin: 0; padding: 12px 22px 0; color: #31547b; font-size: 15px; line-height: 1.45; text-align: left; }
.val-tv-status { margin: 0; padding: 8px 22px 0; color: #1d6fa5; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: left; }
.val-tv-status:empty { display: none; }
.val-tv-editor.is-processing #val-tv-result-canvas { opacity: .55; }
.val-tv-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 22px 22px; }
.val-tv-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 0; }
.val-tv-panel-label { margin: 0; color: #31547b; font-size: 13px; font-weight: 700; }
.val-tv-zoom { display: flex; gap: 6px; }
.val-tv-zoom-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dce9f2; border-radius: 8px; background: #fff; color: #31547b; cursor: pointer; }
.val-tv-zoom-button svg { display: block; width: 16px; height: 16px; }
.val-tv-zoom-button:disabled { opacity: .4; cursor: not-allowed; }
section.val-tv-panel { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #dce9f2; border-radius: 14px; background: #f6faff; }
.val-tv-viewport { display: flex; align-items: safe center; justify-content: safe center; height: min(58vh, 580px); min-height: 320px; overflow: auto; padding: 15px; touch-action: pan-x pan-y; }
.val-tv-viewport.is-zoomed { cursor: grab; }
.val-tv-viewport.is-dragging { cursor: grabbing; user-select: none; }
.val-tv-viewport canvas { display: block; flex: none; max-width: none; height: auto; margin: auto; background: #fff; box-shadow: 0 4px 18px rgba(27, 60, 92, .14); }
#tonal-values-tool { scroll-margin-top: 90px; }
.val-tv-error { margin: 0 0 14px; color: #b43131; font-weight: 600; text-align: left; }
.val-tv-card, .val-tv-step { height: 100%; padding: 28px 24px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(30, 75, 112, .07); }
.val-tv-benefits .col-md-6, .val-tv-steps .col-md-4, .val-tv-use .col-md-4 { margin-top: 16px; }
.val-tv-next-copy { margin-top: 28px; }
.val-tv-next { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.val-tv-next a { font-weight: 700; }
.val-tv-card h3, .val-tv-step h3 { margin: 0 0 12px; font-size: 23px; }
.val-tv-card p, .val-tv-step p { margin: 0; }
.val-tv-step { border: 1px solid #e0edf5; box-shadow: none; }
.val-tv-step > span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: #159bd5; color: #fff; font-size: 22px; font-weight: 700; }
.val-tv-faq .mimi-faq-list { text-align: left; }
.val-tv-final-cta { margin-top: 55px; }
.val-tv-final-cta h2 { margin-bottom: 22px; }
@media (min-width: 992px) {
    .val-tv-hero .page-header-aftertitle-text { margin-bottom: 28px; }
}
@media (max-width: 991px) {
    .val-tv-toolbar { flex-wrap: wrap; justify-content: center; }
    .val-tv-modes { order: -1; width: 100%; max-width: 450px; }
}
@media (max-width: 767px) {
    .val-tv-widget { position: relative; left: 50%; width: calc(100vw - 16px); max-width: none; margin: 0; transform: translateX(-50%); }
    .val-tv-hero .row { display: flex; flex-direction: column; }
    .val-tv-hero .col-md-6 { width: 100%; text-align: center; }
    .val-tv-hero .page-header-title { margin-bottom: 25px; }
    .val-tv-hero .page-header-aftertitle-text { font-size: 17px; line-height: 1.5; }
    .val-tv-hero .page-header-aftertitle-text p { margin-bottom: 14px; }
    .val-tv-hero-preview { margin-top: 28px; padding: 0 15px; }
    .val-tv-dropzone { min-height: 260px; padding: 22px; }
    .val-tv-dropzone h3 { font-size: 18px; }
    .val-tv-editor { display: flex; flex-direction: column; height: calc(100vh - 54px); height: calc(100dvh - 54px); }
    .val-tv-toolbar { justify-content: space-between; gap: 6px; padding: 6px 8px; }
    .val-tv-toolbar .val-tv-icon-button { width: 36px !important; height: 36px !important; flex-basis: 36px; }
    .val-tv-actions { gap: 6px; }
    .val-tv-change { order: 1; }
    .val-tv-actions { order: 2; }
    .val-tv-modes { order: 3; flex: 0 0 100%; max-width: none; }
    .val-tv-mode { min-height: 34px; padding: 3px; font-size: 12px; }
    .val-tv-panels { flex: 1; min-height: 0; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); padding: 5px; gap: 6px; }
    section.val-tv-panel { display: flex; flex-direction: column; min-height: 0; }
    .val-tv-viewport { flex: 1; height: auto; min-height: 0; padding: 5px; }
    .val-tv-hero-caption { font-size: 13px; }
    .val-tv-mode-note, .val-tv-status { padding-left: 10px; padding-right: 10px; font-size: 13px; }
    .val-tv-panel-bar { padding: 4px 6px 0; }
    .val-tv-error { margin: 0 0 12px; }
}
