
/* CAROMY V11 - landscape only */
@media (orientation: landscape) and (pointer: coarse)
       and (max-height: 900px) {

  /* =========================
     두께 안내공
     ========================= */

  .practice-four-grid > .thickness-tile
  .caromy-thickness-stepper {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .practice-four-grid > .thickness-tile
  #thVisual {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
  }

  .practice-four-grid > .thickness-tile
  .caromy-thickness-icon {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    transform: translateY(20px) scale(1.1319) !important;
    transform-origin: center center !important;
  }

  /* 두께 화살표: 좌하단 / 우하단 */
  .practice-four-grid > .thickness-tile
  #thStepLeft,
  .practice-four-grid > .thickness-tile
  #thStepRight {
    position: absolute !important;
    top: auto !important;
    bottom: 3px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
  }

  .practice-four-grid > .thickness-tile
  #thStepLeft {
    left: 2px !important;
    right: auto !important;
  }

  .practice-four-grid > .thickness-tile
  #thStepRight {
    right: 2px !important;
    left: auto !important;
  }

  /* =========================
     당점 안내공
     ========================= */

  .practice-four-grid > .tip-tile
  .caromy-tip-stepper {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .practice-four-grid > .tip-tile
  #tipCanvas {
    position: absolute !important;
    display: block !important;
    grid-area: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: var(--caromy-v11-tip-size, 200px) !important;
    height: var(--caromy-v11-tip-size, 200px) !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) scale(0.679) !important;
    transform-origin: center !important;
    z-index: 1 !important;
    touch-action: none !important;
  }

  /* 당점 화살표: 공보다 높은 레이어 */
  .practice-four-grid > .tip-tile
  .caromy-step-btn {
    position: absolute !important;
    grid-area: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
  }

  .practice-four-grid > .tip-tile
  #tipStepUp {
    top: 1px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .practice-four-grid > .tip-tile
  #tipStepDown {
    bottom: 1px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .practice-four-grid > .tip-tile
  #tipStepLeft {
    left: -1.5px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  .practice-four-grid > .tip-tile
  #tipStepRight {
    right: -1.5px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}





/* CAROMY TOOLBAR ENLARGE V02 START */
@media (orientation: landscape) and (pointer: coarse)
       and (max-height: 900px) {

  .table-panel .practice-table-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
  }

  .table-panel .practice-table-toolbar .view-tools,
  .table-panel .practice-table-toolbar .zoom-tools {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .table-panel .practice-table-toolbar button {
    box-sizing: border-box !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    transform: none !important;
    font-size: clamp(12px, 1.3vw, 16px) !important;
    line-height: 1.15 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .table-panel .practice-table-toolbar #zoomOutBtn,
  .table-panel .practice-table-toolbar #zoomInBtn {
    font-size: 27px !important;
    min-width: 43px !important;
  }

  .table-panel .practice-table-toolbar
  button span[aria-hidden="true"] {
    font-size: 1.2em !important;
  }
}
/* CAROMY TOOLBAR ENLARGE V02 END */


/* CAROMY TOOLBAR ALIGN V03 START */
@media (orientation: landscape) and (pointer: coarse)
       and (max-height: 900px) {

  /* 전체 버튼 영역의 상하 기준 통일 */
  .table-panel .practice-table-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
  }

  /* 좌측 3개와 우측 2개 그룹 높이 통일 */
  .table-panel .practice-table-toolbar .view-tools,
  .table-panel .practice-table-toolbar .zoom-tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
  }

  /* 6개 버튼의 상단과 하단 완전 일치 */
  .table-panel .practice-table-toolbar
  :is(
    #rotate90Btn,
    #flipHorizontalBtn,
    #flipVerticalBtn,
    #practiceToolbarMute,
    #zoomOutBtn,
    #zoomInBtn
  ) {
    box-sizing: border-box !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    align-self: stretch !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    margin: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
/* CAROMY TOOLBAR ALIGN V03 END */


/* CAROMY TOOLBAR CENTER V04 START */
@media (orientation: landscape) and (pointer: coarse)
       and (max-height: 900px) {

  /* 버튼 그룹 전체를 아래로 5px 이동 */
  .table-panel .practice-table-toolbar {
    position: relative !important;
    top: 5px !important;
  }

}
/* CAROMY TOOLBAR CENTER V04 END */
